mesa/st: fix a set_sampler_views call parameter order

Fixes: e7b9561959 ("gallium: implement compute pbo download")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18745>
This commit is contained in:
Tapani Pälli
2022-09-22 11:17:21 +03:00
committed by Marge Bot
parent 672a1a9021
commit d68e74955c

View File

@@ -1168,9 +1168,9 @@ fail:
/* Unbind all because st/mesa won't do it if the current shader doesn't
* use them.
*/
pipe->set_sampler_views(pipe, PIPE_SHADER_COMPUTE, 0, 0, false,
pipe->set_sampler_views(pipe, PIPE_SHADER_COMPUTE, 0, 0,
st->state.num_sampler_views[PIPE_SHADER_COMPUTE],
NULL);
false, NULL);
st->state.num_sampler_views[PIPE_SHADER_COMPUTE] = 0;
pipe->set_shader_buffers(pipe, PIPE_SHADER_COMPUTE, 0, 1, NULL, 0);