early-access version 1513

This commit is contained in:
pineappleEA 2021-03-09 07:39:21 +01:00
parent 9cb6c9f04b
commit a1bb4ca7b1
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 1512. This is the source code for early-access 1513.
## Legal Notice ## Legal Notice

View File

@ -129,11 +129,12 @@ void UtilShaders::ASTCDecode(Image& image, const ImageBufferMap& map,
glBindImageTexture(BINDING_OUTPUT_IMAGE, image.StorageHandle(), swizzle.level, GL_TRUE, 0, glBindImageTexture(BINDING_OUTPUT_IMAGE, image.StorageHandle(), swizzle.level, GL_TRUE, 0,
GL_WRITE_ONLY, GL_RGBA8); GL_WRITE_ONLY, GL_RGBA8);
// ASTC texture data // ASTC texture data
glBindBufferRange(GL_SHADER_STORAGE_BUFFER, BINDING_INPUT_BUFFER, map.buffer, input_offset, glBindBufferRange(GL_SHADER_STORAGE_BUFFER, BINDING_INPUT_BUFFER, map.buffer, input_offset,
image.guest_size_bytes - swizzle.buffer_offset); image.guest_size_bytes - swizzle.buffer_offset);
// Ensure buffer data is valid before dispatching compute
glFinish();
glDispatchCompute(num_dispatches_x, num_dispatches_y, image.info.resources.layers); glDispatchCompute(num_dispatches_x, num_dispatches_y, image.info.resources.layers);
} }
program_manager.RestoreGuestCompute(); program_manager.RestoreGuestCompute();