From 0294dd00ccdab2c20d5df786ba780d7e091c2ab4 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 11 Aug 2016 18:25:09 +0100 Subject: anv: pipeline: gen7: fix assert in debug mode SampleMask is only 8bits long on gen7. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97278 Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Reviewed-by: Anuj Phogat --- src/intel/vulkan/genX_pipeline_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h index cf2adb0cfa4..679fb576835 100644 --- a/src/intel/vulkan/genX_pipeline_util.h +++ b/src/intel/vulkan/genX_pipeline_util.h @@ -463,7 +463,11 @@ emit_ms_state(struct anv_pipeline *pipeline, * * 3DSTATE_SAMPLE_MASK.SampleMask is 16 bits. */ +#if GEN_GEN >= 8 uint32_t sample_mask = 0xffff; +#else + uint32_t sample_mask = 0xff; +#endif if (info) { samples = info->rasterizationSamples; -- cgit v1.2.3