lavapipe: set writemask for compute shader buffers

I don't know how this wasn't being set?

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18827>
(cherry picked from commit 6c935f3f3da5935a12ec1ace0f7541f047b3b526)
This commit is contained in:
Mike Blumenkrantz 2022-09-26 14:41:31 -04:00 committed by Dylan Baker
parent 3c44bd1166
commit 23cab32e26
2 changed files with 2 additions and 2 deletions

View File

@ -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
},

View File

@ -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;
}