From 3f919a7269fe52897d190fce42086bd4d84b88a6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 8 Oct 2020 19:46:21 -0400 Subject: [PATCH] panfrost: Update XML for Bifrost early-z/FPK Had bits scrambled during RE. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 4 ++-- src/panfrost/lib/midgard.xml | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index f6658654254..52f3abc544d 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -402,7 +402,7 @@ panfrost_prepare_bifrost_fs_state(struct panfrost_context *ctx, if (!panfrost_fs_required(fs, blend, rt_count)) { state->properties.unknown = 0x950020; /* XXX */ - state->properties.bifrost_early_z_enable = true; + state->properties.allow_forward_pixel_to_kill = true; } else { bool no_blend = true; @@ -410,7 +410,7 @@ panfrost_prepare_bifrost_fs_state(struct panfrost_context *ctx, no_blend &= (!blend[i].load_dest | blend[i].no_colour); state->properties = fs->properties; - state->properties.bifrost_early_z_enable = !fs->can_discard && !fs->writes_depth && no_blend; + state->properties.allow_forward_pixel_to_kill = !fs->can_discard && !fs->writes_depth && no_blend; state->shader = fs->shader; state->preload = fs->preload; } diff --git a/src/panfrost/lib/midgard.xml b/src/panfrost/lib/midgard.xml index 1dbafbe80ff..2de3f9370ce 100644 --- a/src/panfrost/lib/midgard.xml +++ b/src/panfrost/lib/midgard.xml @@ -235,6 +235,13 @@ + + + + + + + @@ -632,7 +639,9 @@ - + + +