freedreno: Don't open-code setting dirty CS state

There is actually no issue with setting FD_DIRTY_PROG, since all state
is marked dirty when we switch from compute to 3d.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20975>
This commit is contained in:
Rob Clark 2023-01-21 11:27:12 -08:00 committed by Marge Bot
parent 5a37cd8569
commit 1faf7133d4

View file

@ -707,8 +707,7 @@ fd_bind_compute_state(struct pipe_context *pctx, void *state) in_dt
{
struct fd_context *ctx = fd_context(pctx);
ctx->compute = state;
/* NOTE: Don't mark FD_DIRTY_PROG for compute specific state */
ctx->dirty_shader[PIPE_SHADER_COMPUTE] |= FD_DIRTY_SHADER_PROG;
fd_context_dirty_shader(ctx, PIPE_SHADER_COMPUTE, FD_DIRTY_SHADER_PROG);
}
/* TODO pipe_context::set_compute_resources() should DIAF and clover