panfrost: Simplify bind_compute_state

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
Alyssa Rosenzweig 2021-02-10 20:49:15 -05:00
parent 856f0abd2b
commit 5d83442f8e

View file

@ -80,11 +80,7 @@ static void
panfrost_bind_compute_state(struct pipe_context *pipe, void *cso)
{
struct panfrost_context *ctx = pan_context(pipe);
struct panfrost_shader_variants *variants =
(struct panfrost_shader_variants *) cso;
ctx->shader[PIPE_SHADER_COMPUTE] = variants;
ctx->shader[PIPE_SHADER_COMPUTE] = cso;
}
static void