Permalink
Browse files

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:
KhronosGroup/glslang#1296
  • Loading branch information...
unknownbrackets committed Jun 30, 2018
1 parent b13c5fb commit 0b245699bb73420209467f57dbdf79d8e3ec2c28
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 0b24569

Please sign in to comment.