eden/src/video_core/renderer_opengl
BoiledElectricity 5ebb5b8772
Some checks are pending
tx-src / sources (push) Waiting to run
Check Strings / check-strings (push) Waiting to run
[opengl] query GL_MAX_CLIP_DISTANCES instead of hardcoding 8 (#4095)
The GL shader profile hardcoded max_user_clip_distances to 8. Query the
device limit like the Vulkan path already does (it reads
maxClipDistances), so we use what the host actually reports.

Clamp to Maxwell's NumClipDistances (8) since the guest never produces
more than that and the SPIR-V output array is sized for at most 8. So a
host reporting fewer than 8 is respected, and one reporting more can't
overrun anything.

Fixes #3910
https://git.eden-emu.dev/eden-emu/eden/issues/3910

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4095
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
2026-06-15 04:30:40 +02:00
..
present [opengl] remove leftover invalid uniform 2ui being sent every frame x every fb (doesnt exist on opengl_present.frag) (#3358) 2026-01-21 00:12:18 +01:00
blit_image.cpp [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
blit_image.h video_core: Implement maxwell3d draw texture method 2023-01-05 12:41:28 +08:00
gl_blit_screen.cpp [video_core/host_shaders] add Snapdragon GSRv1 fragment shaders (#3307) 2026-05-24 01:38:19 +02:00
gl_blit_screen.h gpu: dependency-inject scaling/antialiasing filter state for capture layers 2024-02-09 09:20:53 -05:00
gl_buffer_cache.cpp [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
gl_buffer_cache.h [*] change all std::unordered_map and std::unordered_set into ankerl::unordered_dense::map/set variants (#3442) 2026-02-10 03:34:07 +01:00
gl_buffer_cache_base.cpp Buffer Cache: Fully rework the buffer cache. 2023-04-29 00:46:31 +02:00
gl_compute_pipeline.cpp [video_core] fix redundant resize-copy overload and just use default-init resize, to reduce stutter on Mario BP (#3874) 2026-05-29 03:28:47 +02:00
gl_compute_pipeline.h shaders: Track local memory usage 2023-06-25 18:59:33 -04:00
gl_device.cpp [opengl] query GL_MAX_CLIP_DISTANCES instead of hardcoding 8 (#4095) 2026-06-15 04:30:40 +02:00
gl_device.h [opengl] query GL_MAX_CLIP_DISTANCES instead of hardcoding 8 (#4095) 2026-06-15 04:30:40 +02:00
gl_fence_manager.cpp OpenGL: Prefer glClientWaitSync for OGLSync objects 2023-03-08 20:29:25 -05:00
gl_fence_manager.h Fence Manager: implement async fence management in a sepparate thread. 2023-04-23 04:48:50 +02:00
gl_graphics_pipeline.cpp [video_core] fix redundant resize-copy overload and just use default-init resize, to reduce stutter on Mario BP (#3874) 2026-05-29 03:28:47 +02:00
gl_graphics_pipeline.h [vk, opengl] Prevent GPU draw call if CBUF binding fails (cbuf0 error handling) (#2) 2025-07-13 19:27:39 +02:00
gl_query_cache.cpp Core: Clang format and other small issues. 2024-01-18 21:12:30 -05:00
gl_query_cache.h Core: Clang format and other small issues. 2024-01-18 21:12:30 -05:00
gl_rasterizer.cpp [video_core] fix redundant resize-copy overload and just use default-init resize, to reduce stutter on Mario BP (#3874) 2026-05-29 03:28:47 +02:00
gl_rasterizer.h renderer_opengl: isolate core presentation code 2024-01-31 11:27:20 -05:00
gl_resource_manager.cpp [meta] remove MicroProfile (#185) 2025-08-06 07:48:11 +02:00
gl_resource_manager.h gl_rasterizer: Implement DrawTransformFeedback macro 2023-12-19 19:54:57 -05:00
gl_shader_cache.cpp [opengl] query GL_MAX_CLIP_DISTANCES instead of hardcoding 8 (#4095) 2026-06-15 04:30:40 +02:00
gl_shader_cache.h [spirv] nuke spirv-opt (#3877) 2026-04-25 21:54:27 +02:00
gl_shader_context.h video_core: preallocate fewer IR blocks 2023-06-14 21:37:57 -04:00
gl_shader_manager.cpp OpenGL: Limit lmem warmup to NVIDIA 2023-06-25 19:06:51 -04:00
gl_shader_manager.h OpenGL: Add Local Memory warmup shader 2023-06-25 18:43:23 -04:00
gl_shader_util.cpp [common/logging] Simplify logging logic and fix issues when logging before system is created (#3688) 2026-03-12 18:29:15 +01:00
gl_shader_util.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
gl_staging_buffer_pool.cpp [cmake] enable clang-cl and WoA builds (#348) 2025-09-09 20:47:49 +02:00
gl_staging_buffer_pool.h gl_texture_cache: Enable async downloads 2023-08-13 23:17:59 -05:00
gl_state_tracker.cpp ir/texture_pass: Use host_info instead of querying Settings::values (#9176) 2022-11-11 03:32:53 +01:00
gl_state_tracker.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
gl_texture_cache.cpp [clang, opengl] fix opengl build on PGO build and clang-cl on windows (#3332) 2026-01-18 02:35:57 +01:00
gl_texture_cache.h [*] change all std::unordered_map and std::unordered_set into ankerl::unordered_dense::map/set variants (#3442) 2026-02-10 03:34:07 +01:00
gl_texture_cache_base.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
maxwell_to_gl.h [vk, opengl] macro-ify PixelSurface and SurfaceFormat lists (#3060) 2025-12-30 21:30:34 +01:00
renderer_opengl.cpp [common/logging] Simplify logging logic and fix issues when logging before system is created (#3688) 2026-03-12 18:29:15 +01:00
renderer_opengl.h [common] replace Common::BitCast with libc++ provided one (#2774) 2025-10-22 02:56:28 +02:00
util_shaders.cpp gl 2023-08-06 14:54:57 -04:00
util_shaders.h OpenGL: Make use of persistent buffer maps in buffer cache downloads 2023-05-28 00:38:46 -04:00