Mesa (main): softpipe: Add a dummy field to sp_fragment_shader_variant_key
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Dec 27 23:38:11 UTC 2021
Module: Mesa
Branch: main
Commit: d87a089579948e5063010d79d22b29005616699f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d87a089579948e5063010d79d22b29005616699f
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Mon Dec 27 11:09:05 2021 -0800
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 <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14312>
---
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;
};
More information about the mesa-commit
mailing list