diff options
author | Kenneth Graunke <[email protected]> | 2017-12-14 16:17:45 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-12-15 14:00:09 -0800 |
commit | 02720f8d249a65d952888b6028a0b8ff0f9a42e4 (patch) | |
tree | fac8cf98e51ce83e55dfbc9a30034e3b7b6aa217 /src/intel | |
parent | 2ec48039b8aa1f6a5e16f3f12483b88981d0f5d3 (diff) |
isl: Don't require VALIGN_2 for R32G32B32_FLOAT on Haswell.
According to the RENDER_SURFACE_STATE internal documentation, the
R32G32B32_FLOAT restriction is marked "IVB" only. We choose to apply
it to Ivybridge and Baytrail, but not Haswell.
Apparently fixes KHR-GL46.texture_size_promotion.functional on Haswell.
Changes these tests from crashing to skipping on Haswell:
- KHR-GL46.direct_state_access.textures_storage_multisample_2d_rgb32f
- KHR-GL46.direct_state_access.textures_storage_multisample_3d_rgb32f
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/isl/isl_gen7.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c index c42428cba7a..4fa9851233f 100644 --- a/src/intel/isl/isl_gen7.c +++ b/src/intel/isl/isl_gen7.c @@ -38,9 +38,11 @@ gen7_format_needs_valign2(const struct isl_device *dev, * (0x190) * * - VALIGN_4 is not supported for surface format R32G32B32_FLOAT. + * + * The R32G32B32_FLOAT restriction is dropped on Haswell. */ return isl_format_is_yuv(format) || - format == ISL_FORMAT_R32G32B32_FLOAT; + (format == ISL_FORMAT_R32G32B32_FLOAT && !ISL_DEV_IS_HASWELL(dev)); } bool |