mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 07:20:23 +01:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue