summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2016-02-29 11:24:34 -0800
committerNanley Chery <nanley.g.chery@intel.com>2016-02-29 11:43:33 -0800
commit74b7b59db5d3ce986f92599b14feaaade63f7b12 (patch)
treef3358f09a1daab05da78efd0b652f4cc9715f85f /src/intel
parent9d8bae613779e0cc7382c9252ccd7f5e7cd5cada (diff)
isl/surface_state: Fix array spacing on Gen7
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>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/isl/isl_surface_state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c
index 12f4fb6bd98..0f45100fba3 100644
--- a/src/intel/isl/isl_surface_state.c
+++ b/src/intel/isl/isl_surface_state.c
@@ -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