[Mesa-dev] [PATCH 21/64] isl/state: Set the IntegerSurfaceFormat bit on Haswell

Jason Ekstrand jason at jlekstrand.net
Sat Jun 11 16:02:36 UTC 2016


This fixes 688 Vulkan CTS tests on Haswell.
---
 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 35902e6..b16bcbf 100644
--- a/src/intel/isl/isl_surface_state.c
+++ b/src/intel/isl/isl_surface_state.c
@@ -202,6 +202,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.5.0.400.gff86faf



More information about the mesa-dev mailing list