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>
This commit is contained in:
Nanley Chery 2016-02-29 11:24:34 -08:00
parent 9d8bae6137
commit 74b7b59db5
1 changed files with 5 additions and 0 deletions

View 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