Mesa (main): shader_info: tess.spacing needs to be unsigned

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 7 12:43:26 UTC 2022


Module: Mesa
Branch: main
Commit: ef27036b4cf054d4955af64343639fac47edfcd8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef27036b4cf054d4955af64343639fac47edfcd8

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Tue Jan  4 12:06:02 2022 -0800

shader_info: tess.spacing needs to be unsigned

Otherwise MSVC will treat the bit-packed enum values as signed.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14402>

---

 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 3c6e6a1f3f8..adcbc0e9217 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -468,7 +468,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;
+         unsigned spacing:2; /*gl_tess_spacing*/
 
          /** Is the vertex order counterclockwise? */
          bool ccw:1;



More information about the mesa-commit mailing list