isl/surface_state: Fix array spacing on Gen7
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 29 Feb 2016 19:24:34 +0000 (11:24 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 29 Feb 2016 19:43:33 +0000 (11:43 -0800)
v2: Don't cast the enum to a boolean (Jason)

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/intel/isl/isl_surface_state.c

index 12f4fb6bd98d3571e050198b02ca5d0b93ed16cc..0f45100fba33e237ffb63aac67ddb6ff7e8b8ae6 100644 (file)
@@ -227,6 +227,11 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
       .VerticalLineStride = 0,
       .VerticalLineStrideOffset = 0,
 
+#if (GEN_GEN == 7)
+      .SurfaceArraySpacing = info->surf->array_pitch_span ==
+                             ISL_ARRAY_PITCH_SPAN_COMPACT,
+#endif
+
 #if GEN_GEN >= 8
       .SamplerL2BypassModeDisable = true,
 #endif