With msvc compiler, enum is signed int. It caused failures with piglit test and glretrace gl4_arb_tessellation_shader_v1
Fixes 84a1a2578dab ('compiler: pack shader_info from 160 bytes to 96 bytes') Fixes vmware bug 2480550 Reviewed-by: Brian Paul <bri...@vmware.com> Reviewed-by: Charmaine Lee <charmai...@vmware.com> --- src/compiler/shader_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index d13e51a47a6..233ee84893a 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -312,7 +312,7 @@ typedef struct shader_info { /** The number of vertices in the TCS output patch. */ uint8_t tcs_vertices_out; - enum gl_tess_spacing spacing:2; + uint8_t spacing:2; // enum gl_tess_spacing /** Is the vertex order counterclockwise? */ bool ccw:1; -- 2.17.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev