summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2023-08-03 00:33:43 +0200
committerAmeer J <52414509+ameerj@users.noreply.github.com>2023-08-06 20:54:58 +0200
commitb36e645fee2104501be7e426132159dfc97eea05 (patch)
treeab0ae9b15b1b58c2667c1a3cd4573a0f6f36f598 /src/video_core
parentRevert "vulkan dims specialization" (diff)
downloadyuzu-b36e645fee2104501be7e426132159dfc97eea05.tar
yuzu-b36e645fee2104501be7e426132159dfc97eea05.tar.gz
yuzu-b36e645fee2104501be7e426132159dfc97eea05.tar.bz2
yuzu-b36e645fee2104501be7e426132159dfc97eea05.tar.lz
yuzu-b36e645fee2104501be7e426132159dfc97eea05.tar.xz
yuzu-b36e645fee2104501be7e426132159dfc97eea05.tar.zst
yuzu-b36e645fee2104501be7e426132159dfc97eea05.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/host_shaders/astc_decoder.comp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp
index a33c916ac..547cd881f 100644
--- a/src/video_core/host_shaders/astc_decoder.comp
+++ b/src/video_core/host_shaders/astc_decoder.comp
@@ -79,7 +79,7 @@ int color_bitsread = 0;
#define VECTOR_ARRAY_SIZE DIVCEIL(ARRAY_NUM_ELEMENTS * 2, 4)
uvec4 result_vector[VECTOR_ARRAY_SIZE];
-uint result_index = 0;
+int result_index = 0;
uint result_vector_max_index;
bool result_limit_reached = false;
@@ -122,8 +122,8 @@ void ResultEmplaceBack(EncodingData val) {
result_limit_reached = true;
return;
}
- const uint array_index = result_index / 4u;
- const uint vector_index = result_index % 4u;
+ const uint array_index = result_index / 4;
+ const uint vector_index = result_index % 4;
result_vector[array_index][vector_index] = val.data;
++result_index;
}