diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-02 05:47:10 +0200 |
---|---|---|
committer | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-06 20:54:58 +0200 |
commit | 7a0d7e7668b13ecf67760843f5a72cf681d8ea34 (patch) | |
tree | ded2c5ccef3c5def9b4ce03b510c5da8e5ea48a9 /src/video_core/host_shaders/astc_decoder.comp | |
parent | remove TexelWeightParams (diff) | |
download | yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.gz yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.bz2 yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.lz yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.xz yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.zst yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.zip |
Diffstat (limited to 'src/video_core/host_shaders/astc_decoder.comp')
-rw-r--r-- | src/video_core/host_shaders/astc_decoder.comp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp index f497c4d17..a33c916ac 100644 --- a/src/video_core/host_shaders/astc_decoder.comp +++ b/src/video_core/host_shaders/astc_decoder.comp @@ -264,8 +264,8 @@ uint Hash52(uint p) { return p; } -uint Select2DPartition(uint seed, uint x, uint y, uint partition_count, bool small_block) { - if (small_block) { +uint Select2DPartition(uint seed, uint x, uint y, uint partition_count) { + if ((block_dims.y * block_dims.x) < 32) { x <<= 1; y <<= 1; } @@ -1222,8 +1222,7 @@ void DecompressBlock(ivec3 coord) { for (uint i = 0; i < block_dims.x; i++) { uint local_partition = 0; if (num_partitions > 1) { - local_partition = Select2DPartition(partition_index, i, j, num_partitions, - (block_dims.y * block_dims.x) < 32); + local_partition = Select2DPartition(partition_index, i, j, num_partitions); } const uvec4 C0 = ReplicateByteTo16(endpoints0[local_partition]); const uvec4 C1 = ReplicateByteTo16(endpoints1[local_partition]); |