Browse Source
[vk, opengl] Prevent GPU draw call if CBUF binding fails (cbuf0 error handling) (#2)
[vk, opengl] Prevent GPU draw call if CBUF binding fails (cbuf0 error handling) (#2)
Add defensive checks to cancel draw calls early if any graphics storage buffer (CBUF) fails to bind properly. - Modified BindGraphicsStorageBuffer to return false on invalid buffer ID., - ConfigureImpl (both OpenGL and Vulkan) now propagates binding failure., - Pipeline::Configure returns false if CBUF binding fails., - PrepareDraw cancels rendering if pipeline configuration fails., This avoids undefined GPU behavior, draw corruption, or crashes caused by uninitialized or invalid constant buffer (CBUF0) access, particularly in games with faulty or missing shader bindings. Eden Collaborator: <edencollaborator@eden-emu.org> Authored-by: CamilleLaVey <camillelavey@eden-emu.org> Signed-off-by: Bix <bix@bixed.xyz> Co-authored-by: Bix <114880614+Bixbr@users.noreply.github.com> Co-authored-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2 Co-authored-by: Ghost <> Co-committed-by: Ghost <>pull/3039/head
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
8 changed files with 44 additions and 21 deletions
-
3src/video_core/buffer_cache/buffer_cache.h
-
2src/video_core/buffer_cache/buffer_cache_base.h
-
9src/video_core/renderer_opengl/gl_graphics_pipeline.cpp
-
13src/video_core/renderer_opengl/gl_graphics_pipeline.h
-
3src/video_core/renderer_opengl/gl_rasterizer.cpp
-
19src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
-
13src/video_core/renderer_vulkan/vk_graphics_pipeline.h
-
3src/video_core/renderer_vulkan/vk_rasterizer.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue