1
0
Fork 0
forked from suyu/suyu
suyu/src
ReinUsesLisp d8827b07b5 gl_shader_decompiler: Use an if based cbuf indexing for broken drivers
The following code is broken on AMD's proprietary GLSL compiler:
```glsl
uint idx = ...;
vec4 values = ...;
float some_value = values[idx & 3];
```

It index the wrong components, to fix this the following pessimized code
is emitted when that bug is present:
```glsl
uint idx = ...;
vec4 values = ...;
float some_value;
if ((idx & 3) == 0) some_value = values.x;
if ((idx & 3) == 1) some_value = values.y;
if ((idx & 3) == 2) some_value = values.z;
if ((idx & 3) == 3) some_value = values.w;
```
2019-05-24 02:47:56 -03:00
..
audio_core core/core_timing: Make callback parameters consistent 2019-03-24 18:12:17 -04:00
common common/zstd_compression: Remove #pragma once directive from source file 2019-05-04 01:54:29 -04:00
core Merge pull request #2410 from lioncash/affinity 2019-05-19 13:59:52 -04:00
input_common general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
tests kernel: Handle page table switching within MakeCurrentProcess() 2019-04-07 01:12:54 -04:00
video_core gl_shader_decompiler: Use an if based cbuf indexing for broken drivers 2019-05-24 02:47:56 -03:00
web_service general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
yuzu Merge pull request #2455 from lioncash/config 2019-05-20 20:46:05 -04:00
yuzu_cmd Merge pull request #2477 from ReinUsesLisp/fix-sdl2 2019-05-17 13:04:33 -04:00
.clang-format
CMakeLists.txt Merge pull request #2460 from lioncash/volatile 2019-05-14 06:34:53 -04:00