From 1b5cac4511f5e61cfa85f9b82291006b618c3250 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 29 Oct 2020 08:50:06 -0400 Subject: [PATCH] panfrost: Rename VARYING_DISCARD to CONSTANT Used for data that does not exist. If used for a load, it is a zero-components read (so you can use a 0000 or 0001 swizzle) that does not touch memory. If used as a store, writes are simply discarded. Signed-off-by: Alyssa Rosenzweig Tested-by: Christian Hewitt Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 +- src/panfrost/lib/midgard.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 40d1bc45392..fcf39aa6b9b 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -1476,7 +1476,7 @@ static void pan_emit_vary_only(struct mali_attribute_packed *out, unsigned present, unsigned quirks) { - pan_emit_vary(out, present, 0, quirks, MALI_VARYING_DISCARD, 0); + pan_emit_vary(out, present, 0, quirks, MALI_CONSTANT, 0); } /* Special records */ diff --git a/src/panfrost/lib/midgard.xml b/src/panfrost/lib/midgard.xml index d0fb6f9463d..763d363ebd3 100644 --- a/src/panfrost/lib/midgard.xml +++ b/src/panfrost/lib/midgard.xml @@ -138,7 +138,7 @@ - +