From: Jason Ekstrand Date: Tue, 7 Jun 2016 15:05:45 +0000 (-0700) Subject: isl/state: Set the IntegerSurfaceFormat bit on Haswell X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a43204afa40359f73684d3ccc7db8c4dad6288b;p=mesa.git isl/state: Set the IntegerSurfaceFormat bit on Haswell This fixes 688 Vulkan CTS tests on Haswell. Reviewed-by: Chad Versace Cc: "12.0" --- diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index bf9a2b307c0..25d5e6c8aab 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -203,6 +203,10 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, s.SurfaceFormat = info->view->format; } +#if GEN_IS_HASWELL + s.IntegerSurfaceFormat = isl_format_has_int_channel(s.SurfaceFormat); +#endif + s.Width = info->surf->logical_level0_px.width - 1; s.Height = info->surf->logical_level0_px.height - 1;