Module: wine Branch: master Commit: 3220ea243102c382e2f45539b83ab8c2e65db428 URL: https://source.winehq.org/git/wine.git/?a=commit;h=3220ea243102c382e2f45539b...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Nov 19 17:23:48 2021 -0600
wined3d: Allow OpenGL indirect dispatch buffer objects to be suballocated from a larger buffer.
Signed-off-by: Zebediah Figura zfigura@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/context_gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c index 69eb13f3027..4ba5b04cad9 100644 --- a/dlls/wined3d/context_gl.c +++ b/dlls/wined3d/context_gl.c @@ -4342,7 +4342,7 @@ void dispatch_compute(struct wined3d_device *device, const struct wined3d_state struct wined3d_bo_gl *bo_gl = wined3d_bo_gl(indirect->buffer->buffer_object);
GL_EXTCALL(glBindBuffer(GL_DISPATCH_INDIRECT_BUFFER, bo_gl->id)); - GL_EXTCALL(glDispatchComputeIndirect((GLintptr)indirect->offset)); + GL_EXTCALL(glDispatchComputeIndirect(bo_gl->b.buffer_offset + (GLintptr)indirect->offset)); GL_EXTCALL(glBindBuffer(GL_DISPATCH_INDIRECT_BUFFER, 0)); wined3d_context_gl_reference_bo(context_gl, bo_gl); }