i965 gen7: don't set FORCE_ZERO_RTAINDEX for layered rendering
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 19 Apr 2013 08:13:31 +0000 (01:13 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 4 Aug 2013 18:52:38 +0000 (11:52 -0700)
When layered rendering is being used, we should not set
FORCE_ZERO_RTAINDEX in the clip state to allow render target
array values other than zero to be used.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/gen7_clip_state.c

index 36a793c6fb50ae0bbb3fdf94f5c3b11f9d84c6c7..5c095a1132af1137eb2492e90f70964f81a2a1a6 100644 (file)
@@ -118,7 +118,7 @@ upload_clip_state(struct brw_context *brw)
              dw2);
    OUT_BATCH(U_FIXED(0.125, 3) << GEN6_CLIP_MIN_POINT_WIDTH_SHIFT |
              U_FIXED(255.875, 3) << GEN6_CLIP_MAX_POINT_WIDTH_SHIFT |
-             GEN6_CLIP_FORCE_ZERO_RTAINDEX);
+             (fb->Layered ? 0 : GEN6_CLIP_FORCE_ZERO_RTAINDEX));
    ADVANCE_BATCH();
 }