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:
parent
9d8bae6137
commit
74b7b59db5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue