summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Ameer J2023-08-01 23:47:10 -0400
committerGravatar Ameer J2023-08-06 14:54:58 -0400
commit7a0d7e7668b13ecf67760843f5a72cf681d8ea34 (patch)
treeded2c5ccef3c5def9b4ce03b510c5da8e5ea48a9 /src
parentremove TexelWeightParams (diff)
downloadyuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.gz
yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.tar.xz
yuzu-7a0d7e7668b13ecf67760843f5a72cf681d8ea34.zip
small_block opt
Diffstat (limited to 'src')
-rw-r--r--src/video_core/host_shaders/astc_decoder.comp7
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) {
264 return p; 264 return p;
265} 265}
266 266
267uint Select2DPartition(uint seed, uint x, uint y, uint partition_count, bool small_block) { 267uint Select2DPartition(uint seed, uint x, uint y, uint partition_count) {
268 if (small_block) { 268 if ((block_dims.y * block_dims.x) < 32) {
269 x <<= 1; 269 x <<= 1;
270 y <<= 1; 270 y <<= 1;
271 } 271 }
@@ -1222,8 +1222,7 @@ void DecompressBlock(ivec3 coord) {
1222 for (uint i = 0; i < block_dims.x; i++) { 1222 for (uint i = 0; i < block_dims.x; i++) {
1223 uint local_partition = 0; 1223 uint local_partition = 0;
1224 if (num_partitions > 1) { 1224 if (num_partitions > 1) {
1225 local_partition = Select2DPartition(partition_index, i, j, num_partitions, 1225 local_partition = Select2DPartition(partition_index, i, j, num_partitions);
1226 (block_dims.y * block_dims.x) < 32);
1227 } 1226 }
1228 const uvec4 C0 = ReplicateByteTo16(endpoints0[local_partition]); 1227 const uvec4 C0 = ReplicateByteTo16(endpoints0[local_partition]);
1229 const uvec4 C1 = ReplicateByteTo16(endpoints1[local_partition]); 1228 const uvec4 C1 = ReplicateByteTo16(endpoints1[local_partition]);