mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
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
This commit is contained in:
1 parent
b13c5fbe5d
commit
0b245699bb
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user