Merge pull request #11149 from ameerj/astc-perf-prod

host_shaders: ASTC compute shader optimizations
This commit is contained in:
liamwhite 2023-08-21 16:08:51 -04:00 committed by GitHub
commit 18c08cee43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 483 additions and 564 deletions

File diff suppressed because it is too large Load diff

View file

@ -68,6 +68,7 @@ void UtilShaders::ASTCDecode(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles) { std::span<const VideoCommon::SwizzleParameters> swizzles) {
static constexpr GLuint BINDING_INPUT_BUFFER = 0; static constexpr GLuint BINDING_INPUT_BUFFER = 0;
static constexpr GLuint BINDING_OUTPUT_IMAGE = 0; static constexpr GLuint BINDING_OUTPUT_IMAGE = 0;
program_manager.LocalMemoryWarmup();
const Extent2D tile_size{ const Extent2D tile_size{
.width = VideoCore::Surface::DefaultBlockWidth(image.info.format), .width = VideoCore::Surface::DefaultBlockWidth(image.info.format),