mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
freedreno/a3xx+a4xx: fix clip-plane lowering state
If enabled clip-planes have changed, we need to mark program state dirty. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
f546b41f6a
commit
f88f025e8c
2 changed files with 6 additions and 0 deletions
|
|
@ -124,6 +124,9 @@ fixup_shader_state(struct fd_context *ctx, struct ir3_shader_key *key)
|
|||
if (last_key->half_precision != key->half_precision)
|
||||
ctx->dirty |= FD_SHADER_DIRTY_FP;
|
||||
|
||||
if (last_key->ucp_enables != key->ucp_enables)
|
||||
ctx->dirty |= FD_SHADER_DIRTY_FP | FD_SHADER_DIRTY_VP;
|
||||
|
||||
fd3_ctx->last_key = *key;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,6 +113,9 @@ fixup_shader_state(struct fd_context *ctx, struct ir3_shader_key *key)
|
|||
if (last_key->rasterflat != key->rasterflat)
|
||||
ctx->dirty |= FD_SHADER_DIRTY_FP;
|
||||
|
||||
if (last_key->ucp_enables != key->ucp_enables)
|
||||
ctx->dirty |= FD_SHADER_DIRTY_FP | FD_SHADER_DIRTY_VP;
|
||||
|
||||
fd4_ctx->last_key = *key;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue