From d87a089579948e5063010d79d22b29005616699f Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 27 Dec 2021 11:09:05 -0800 Subject: [PATCH] softpipe: Add a dummy field to sp_fragment_shader_variant_key MSVC doesn't support 0-size structs in C. Fixes: 0b7a0d1a ("softpipe: Use the draw module's poly stipple handling, like llvmpipe.") Reviewed-by: Emma Anholt Part-of: --- src/gallium/drivers/softpipe/sp_state.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/softpipe/sp_state.h b/src/gallium/drivers/softpipe/sp_state.h index 4914b11cba8..63f6994bbc4 100644 --- a/src/gallium/drivers/softpipe/sp_state.h +++ b/src/gallium/drivers/softpipe/sp_state.h @@ -64,6 +64,8 @@ struct vertex_info; struct sp_fragment_shader_variant_key { + /* Standard C doesn't allow 0-size structs */ + int dummy; };