summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_zsa.c
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-11-29 13:19:45 +0100
committerChristian Gmeiner <[email protected]>2017-11-30 07:32:33 +0100
commit3d09bb390a396ce89b6cb025d84e4076d8b27ae0 (patch)
tree6bcb5319cdc07e10699d95cc54b8fbea19009f42 /src/gallium/drivers/etnaviv/etnaviv_zsa.c
parentacd3dff4637d521d5e2004ed96b8b0ae5a461a30 (diff)
etnaviv: GC7000: State changes for HALTI3..5
Update state objects to add new state, and emit function to emit new state. Signed-off-by: Wladimir J. van der Laan <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_zsa.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_zsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_zsa.c b/src/gallium/drivers/etnaviv/etnaviv_zsa.c
index 22c2020fe5c..4e72cd2ffb9 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_zsa.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_zsa.c
@@ -98,7 +98,8 @@ etna_zsa_state_create(struct pipe_context *pctx,
: PIPE_FUNC_ALWAYS) |
COND(so->depth.writemask, VIVS_PE_DEPTH_CONFIG_WRITE_ENABLE) |
COND(early_z, VIVS_PE_DEPTH_CONFIG_EARLY_Z) |
- COND(disable_zs, VIVS_PE_DEPTH_CONFIG_DISABLE_ZS);
+ /* this bit changed meaning with HALTI5: */
+ COND(disable_zs && ctx->specs.halti < 5, VIVS_PE_DEPTH_CONFIG_DISABLE_ZS);
cs->PE_ALPHA_OP =
COND(so->alpha.enabled, VIVS_PE_ALPHA_OP_ALPHA_TEST) |
VIVS_PE_ALPHA_OP_ALPHA_FUNC(so->alpha.func) |