aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-01 16:44:49 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-10 06:12:04 -0700
commitae42991b83d03fd3776f8fd4e926a3b4017ebf54 (patch)
treec6223eb749d7eb1f9d297917ccb60d4c95ace318 /src
parent7f807ef1fa9ff90a1bfb0f16f483d8649e2faf50 (diff)
panfrost/midgard: Fix blend constant scheduling bug
Blend constant conflicts run in two directions. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/midgard/midgard_schedule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_schedule.c b/src/gallium/drivers/panfrost/midgard/midgard_schedule.c
index 7059f7bbe2a..c0dd5764595 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_schedule.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_schedule.c
@@ -257,6 +257,10 @@ schedule_bundle(compiler_context *ctx, midgard_block *block, midgard_instruction
* the swizzle */
if (ains->has_blend_constant) {
+ /* Everything conflicts with the blend constant */
+ if (bundle.has_embedded_constants)
+ break;
+
bundle.has_blend_constant = 1;
bundle.has_embedded_constants = 1;
} else if (ains->has_constants) {