From: Rob Clark Date: Mon, 3 Oct 2016 20:24:07 +0000 (-0400) Subject: freedreno/a3xx+a4xx: fix clip-plane lowering state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f88f025e8c22047e4e07d3f8653b637924e7313e;p=mesa.git 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 --- diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_draw.c b/src/gallium/drivers/freedreno/a3xx/fd3_draw.c index d26786f6499..b3cd4619559 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_draw.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_draw.c @@ -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; } } diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_draw.c b/src/gallium/drivers/freedreno/a4xx/fd4_draw.c index 06d16fe934f..641c58a15bd 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_draw.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_draw.c @@ -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; } }