2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
yuzu/src/video_core
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
..
debug_utils
engines Merge pull request #2441 from ReinUsesLisp/al2p 2019-05-19 14:02:58 -04:00
renderer_opengl gl_shader_decompiler: Use an if based cbuf indexing for broken drivers 2019-05-24 02:47:56 -03:00
renderer_vulkan Merge pull request #2441 from ReinUsesLisp/al2p 2019-05-19 14:02:58 -04:00
shader shader/shader_ir: Make Comment() take a std::string by value 2019-05-23 03:01:55 -03:00
textures video_core/textures/astc: Remove unused variables 2019-05-09 18:33:36 -04:00
CMakeLists.txt Merge pull request #2429 from FernandoS27/compute 2019-05-09 13:19:22 -04:00
dma_pusher.cpp Dma_pusher: ASSERT on empty command_list 2019-05-19 10:48:31 -04:00
dma_pusher.h
gpu.cpp Introduce skeleton of the GPU Compute Engine. 2019-04-22 19:05:43 -04:00
gpu.h video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00
gpu_asynch.cpp video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00
gpu_asynch.h video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00
gpu_synch.cpp video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00
gpu_synch.h video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00
gpu_thread.cpp yuzu: Remove explicit types from locks where applicable 2019-05-14 08:18:48 -04:00
gpu_thread.h Merge pull request #2467 from lioncash/move 2019-05-19 15:20:37 +01:00
macro_interpreter.cpp Revert #2466 2019-05-19 16:04:44 -04:00
macro_interpreter.h
memory_manager.cpp video_core/memory_manager: Mark IsBlockContinuous() as a const member function 2019-05-09 19:14:36 -04:00
memory_manager.h video_core/memory_manager: Mark IsBlockContinuous() as a const member function 2019-05-09 19:14:36 -04:00
morton.cpp
morton.h
rasterizer_cache.cpp
rasterizer_cache.h Merge pull request #2452 from FernandoS27/raster-cache-fix 2019-05-19 16:00:44 +01:00
rasterizer_interface.h
renderer_base.cpp
renderer_base.h
sampler_cache.cpp
sampler_cache.h
surface.cpp video_core: Silent -Wswitch warnings 2019-04-18 15:54:39 -03:00
surface.h
texture_cache.cpp
texture_cache.h
video_core.cpp video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00
video_core.h video_core/gpu: Create threads separately from initialization 2019-04-11 22:11:40 -04:00