From 0b245699bb73420209467f57dbdf79d8e3ec2c28 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 30 Jun 2018 09:41:12 -0700 Subject: [PATCH] GLES: Specify unsigned shift for Adreno bug. Adreno 320 devices, and at least 1 Intel device, are complaining that right shift can't be used within uint/int. Possibly related to: https://github.com/KhronosGroup/glslang/issues/1296 --- GPU/Common/DepalettizeShaderCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/DepalettizeShaderCommon.cpp b/GPU/Common/DepalettizeShaderCommon.cpp index 19a14c2dfc..e691f25459 100644 --- a/GPU/Common/DepalettizeShaderCommon.cpp +++ b/GPU/Common/DepalettizeShaderCommon.cpp @@ -114,7 +114,7 @@ void GenerateDepalShader300(char *buffer, GEBufferFormat pixelFormat, ShaderLang texturePixels = 512; if (shift) { - WRITE(p, " index = (int(uint(index) >> %i) & 0x%02x)", shift, mask); + WRITE(p, " index = (int(uint(index) >> uint(%i)) & 0x%02x)", shift, mask); } else { WRITE(p, " index = (index & 0x%02x)", mask); }