diff options
author | Nanley Chery <[email protected]> | 2016-02-29 11:24:34 -0800 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2016-02-29 11:43:33 -0800 |
commit | 74b7b59db5d3ce986f92599b14feaaade63f7b12 (patch) | |
tree | f3358f09a1daab05da78efd0b652f4cc9715f85f /src/intel/isl | |
parent | 9d8bae613779e0cc7382c9252ccd7f5e7cd5cada (diff) |
isl/surface_state: Fix array spacing on Gen7
v2: Don't cast the enum to a boolean (Jason)
Signed-off-by: Nanley Chery <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/isl')
-rw-r--r-- | src/intel/isl/isl_surface_state.c | 5 |
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 |