=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Change vPrim register data type to signed integer.

Alexandre Julliard julliard at winehq.org
Fri May 19 15:59:53 CDT 2017


Module: wine
Branch: master
Commit: e233b3424a970fb7eca83709e337125ceccc6681
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e233b3424a970fb7eca83709e337125ceccc6681

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu May 18 15:19:57 2017 +0200

wined3d: Change vPrim register data type to signed integer.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/glsl_shader.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 6f51939..522a30d 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -3002,9 +3002,9 @@ static void shader_glsl_get_register_name(const struct wined3d_shader_register *
 
         case WINED3DSPR_PRIMID:
             if (version->type == WINED3D_SHADER_TYPE_GEOMETRY)
-                sprintf(register_name, "uint(gl_PrimitiveIDIn)");
+                sprintf(register_name, "gl_PrimitiveIDIn");
             else
-                sprintf(register_name, "uint(gl_PrimitiveID)");
+                sprintf(register_name, "gl_PrimitiveID");
             break;
 
         case WINED3DSPR_IDXTEMP:
@@ -3192,13 +3192,11 @@ static void shader_glsl_add_src_param_ext(const struct wined3d_shader_instructio
         case WINED3DSPR_IMMCONST:
             param_data_type = data_type;
             break;
-        case WINED3DSPR_PRIMID:
-            param_data_type = WINED3D_DATA_UINT;
-            break;
         case WINED3DSPR_GSINSTID:
         case WINED3DSPR_LOCALTHREADID:
         case WINED3DSPR_LOCALTHREADINDEX:
         case WINED3DSPR_OUTPOINTID:
+        case WINED3DSPR_PRIMID:
         case WINED3DSPR_THREADGROUPID:
         case WINED3DSPR_THREADID:
             param_data_type = WINED3D_DATA_INT;




More information about the wine-cvs mailing list