From 6a43204afa40359f73684d3ccc7db8c4dad6288b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 7 Jun 2016 08:05:45 -0700 Subject: [PATCH] isl/state: Set the IntegerSurfaceFormat bit on Haswell This fixes 688 Vulkan CTS tests on Haswell. Reviewed-by: Chad Versace Cc: "12.0" --- src/intel/isl/isl_surface_state.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2