summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2019-11-03 23:50:38 -0800
committerDylan Baker <dylan@pnwbakers.com>2019-11-05 08:46:55 -0800
commita74300e4cf31729ac53389a8ee5a951cfd35a379 (patch)
tree69f3e6db9e90844b5a8ad514f01849573f014804
parentc1f1a1056f21e8f8be0e06958d2139cf84b519c0 (diff)
iris: Fix "Force Zero RTA Index Enable" setting again
In 2ca0d913ea8, we began updating cso_fb->layers to the actual layer count, rather than 0. This fixed cases where we were setting "Force Zero RTA Index Enable" even when doing layered rendering. Sadly, it also broke the check entirely: cso_fb->layers is now 1 for non-layered cases, but the Force Zero RTA Index check was still comparing for 0. Fixes: 2ca0d913ea8 ("iris: Fix framebuffer layer count") (cherry picked from commit fc7b7480867d6049ca12f87d9b6ab0d9ad55d59f)
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 1f354bc3bee..7d945ecec9e 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -5048,7 +5048,7 @@ iris_upload_dirty_render_state(struct iris_context *ice,
BRW_BARYCENTRIC_NONPERSPECTIVE_BITS)
cl.NonPerspectiveBarycentricEnable = true;
- cl.ForceZeroRTAIndexEnable = cso_fb->layers == 0;
+ cl.ForceZeroRTAIndexEnable = cso_fb->layers <= 1;
cl.MaximumVPIndex = ice->state.num_viewports - 1;
}
iris_emit_merge(batch, cso_rast->clip, dynamic_clip,