Module: wine Branch: master Commit: aac8ae7300576312d43c5f5541f9209284ad3f36 URL: https://gitlab.winehq.org/wine/wine/-/commit/aac8ae7300576312d43c5f5541f9209...
Author: Eric Pouech eric.pouech@gmail.com Date: Thu Dec 1 00:18:55 2022 +0100
wined3d: Let control_values' type be unsigned int.
Signed-off-by: Eric Pouech eric.pouech@gmail.com
---
dlls/wined3d/arb_program_shader.c | 6 +++--- dlls/wined3d/glsl_shader.c | 4 ++-- dlls/wined3d/wined3d_private.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index db70a9853d4..4176eda91af 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -3397,7 +3397,7 @@ static void arbfp_add_sRGB_correction(struct wined3d_string_buffer *buffer, cons /* [0.0;1.0] clamping. Not needed, this is done implicitly */ }
-static const DWORD *find_loop_control_values(const struct wined3d_shader *shader, DWORD idx) +static const unsigned int *find_loop_control_values(const struct wined3d_shader *shader, DWORD idx) { const struct wined3d_shader_lconst *constant;
@@ -3719,7 +3719,7 @@ static GLuint shader_arb_generate_pshader(const struct wined3d_shader *shader, compiled->int_consts[i] = WINED3D_CONST_NUM_UNUSED; if (reg_maps->integer_constants & (1u << i) && priv_ctx.target_version >= NV2) { - const DWORD *control_values = find_loop_control_values(shader, i); + const unsigned int *control_values = find_loop_control_values(shader, i);
if(control_values) { @@ -4167,7 +4167,7 @@ static GLuint shader_arb_generate_vshader(const struct wined3d_shader *shader, compiled->int_consts[i] = WINED3D_CONST_NUM_UNUSED; if (reg_maps->integer_constants & (1u << i) && priv_ctx.target_version >= NV2) { - const DWORD *control_values = find_loop_control_values(shader, i); + const unsigned int *control_values = find_loop_control_values(shader, i);
if(control_values) { diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 4435b9e5b34..1dbeb9351d8 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -4847,7 +4847,7 @@ static void shader_glsl_loop(const struct wined3d_shader_instruction *ins) const struct wined3d_shader *shader = ins->ctx->shader; const struct wined3d_shader_lconst *constant; struct wined3d_string_buffer *reg_name; - const DWORD *control_values = NULL; + const unsigned int *control_values = NULL;
if (ins->ctx->reg_maps->shader_version.major < 4) { @@ -4945,7 +4945,7 @@ static void shader_glsl_rep(const struct wined3d_shader_instruction *ins) const struct wined3d_shader *shader = ins->ctx->shader; const struct wined3d_shader_lconst *constant; struct glsl_src_param src0_param; - const DWORD *control_values = NULL; + const unsigned int *control_values = NULL;
/* Try to hardcode local values to help the GLSL compiler to unroll and optimize the loop */ if (ins->src[0].reg.type == WINED3DSPR_CONSTINT) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index ebbf0e8cba0..a76dc7407cc 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -5834,7 +5834,7 @@ struct wined3d_shader_lconst { struct list entry; unsigned int idx; - DWORD value[4]; + unsigned int value[4]; };
struct wined3d_shader_limits