From 74b7b59db5d3ce986f92599b14feaaade63f7b12 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 29 Feb 2016 11:24:34 -0800 Subject: [PATCH] isl/surface_state: Fix array spacing on Gen7 v2: Don't cast the enum to a boolean (Jason) Signed-off-by: Nanley Chery Reviewed-by: Jason Ekstrand --- src/intel/isl/isl_surface_state.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2