From 23cab32e264bac4cdb4df2a1d181e6d0d3c55a4c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 26 Sep 2022 14:41:31 -0400 Subject: [PATCH] lavapipe: set writemask for compute shader buffers I don't know how this wasn't being set? cc: mesa-stable Reviewed-by: Dave Airlie Part-of: (cherry picked from commit 6c935f3f3da5935a12ec1ace0f7541f047b3b526) --- .pick_status.json | 2 +- src/gallium/frontends/lavapipe/lvp_execute.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 72411ed51a5..cce772edd55 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -670,7 +670,7 @@ "description": "lavapipe: set writemask for compute shader buffers", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index c6cff2893bb..8885f40b8e1 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -378,7 +378,7 @@ static void emit_compute_state(struct rendering_state *state) if (state->sb_dirty[PIPE_SHADER_COMPUTE]) { state->pctx->set_shader_buffers(state->pctx, PIPE_SHADER_COMPUTE, 0, state->num_shader_buffers[PIPE_SHADER_COMPUTE], - state->sb[PIPE_SHADER_COMPUTE], 0); + state->sb[PIPE_SHADER_COMPUTE], state->access[MESA_SHADER_COMPUTE].buffers_written); state->sb_dirty[PIPE_SHADER_COMPUTE] = false; }