diff options
| author | Zephyron <zephyron@citron-emu.org> | 2025-01-18 19:09:03 +1000 |
|---|---|---|
| committer | Mike Lothian <mike@fireburn.co.uk> | 2025-05-11 12:17:03 +0100 |
| commit | 9ef8867bd4e4b7c70563d71f9a079c384862ee2e (patch) | |
| tree | 64db774f72656714718f6af61b497bcf89386a53 /src/video_core | |
| parent | 221efc229415f6fa3ccc08fddc163b00a26e610c (diff) | |
arm/video: Fix shader extension and exception handling
Two main changes in this commit:
1. Replace NVIDIA-specific GL_NV_gpu_shader5 extension with the more widely
supported GL_EXT_shader_explicit_arithmetic_types_float16 in the scaleforce
shader. This improves compatibility across different GPU vendors.
2. Refactor ARM32 exception handling:
- Restructure exception cases for better readability
- Update exception handling to match current Dynarmic API
- Fix indentation in switch statement
- Remove AccessViolation case as it's no longer supported in current API
These changes improve shader compatibility and align the exception handling
with the current Dynarmic implementation.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/host_shaders/opengl_present_scaleforce.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/opengl_present_scaleforce.frag b/src/video_core/host_shaders/opengl_present_scaleforce.frag index 1598575a1..eeee51162 100644 --- a/src/video_core/host_shaders/opengl_present_scaleforce.frag +++ b/src/video_core/host_shaders/opengl_present_scaleforce.frag @@ -10,7 +10,7 @@ #ifdef YUZU_USE_FP16 #extension GL_AMD_gpu_shader_half_float : enable -#extension GL_NV_gpu_shader5 : enable +#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require #define lfloat float16_t #define lvec2 f16vec2 |
