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@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14312>
This commit is contained in:
Jesse Natalie 2021-12-27 11:09:05 -08:00
parent 79af19ab9e
commit d87a089579

View file

@ -64,6 +64,8 @@ struct vertex_info;
struct sp_fragment_shader_variant_key
{
/* Standard C doesn't allow 0-size structs */
int dummy;
};