mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Rename the "immconst_uint" field of struct vkd3d_shader_register to "immconst_u32".
For consistency with the rest of vkd3d-shader; e.g. put_u32() and read_u32().
This commit is contained in:
committed by
Alexandre Julliard
parent
78343dcf87
commit
e33d3b3954
Notes:
Alexandre Julliard
2024-01-03 23:08:59 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/534
@@ -1891,7 +1891,7 @@ static unsigned int register_get_uint_value(const struct vkd3d_shader_register *
|
||||
return reg->u.immconst_uint64[0];
|
||||
}
|
||||
|
||||
return reg->u.immconst_uint[0];
|
||||
return reg->u.immconst_u32[0];
|
||||
}
|
||||
|
||||
static uint64_t register_get_uint64_value(const struct vkd3d_shader_register *reg)
|
||||
@@ -1902,7 +1902,7 @@ static uint64_t register_get_uint64_value(const struct vkd3d_shader_register *re
|
||||
if (reg->dimension == VSIR_DIMENSION_VEC4)
|
||||
WARN("Returning vec4.x.\n");
|
||||
|
||||
return (reg->type == VKD3DSPR_IMMCONST64) ? reg->u.immconst_uint64[0] : reg->u.immconst_uint[0];
|
||||
return (reg->type == VKD3DSPR_IMMCONST64) ? reg->u.immconst_uint64[0] : reg->u.immconst_u32[0];
|
||||
}
|
||||
|
||||
static inline bool sm6_value_is_function_dcl(const struct sm6_value *value)
|
||||
@@ -2577,7 +2577,7 @@ static enum vkd3d_result sm6_parser_constants_init(struct sm6_parser *sm6, const
|
||||
|
||||
value = decode_rotated_signed_value(record->operands[0]);
|
||||
if (type->u.width <= 32)
|
||||
dst->u.reg.u.immconst_uint[0] = value & ((1ull << type->u.width) - 1);
|
||||
dst->u.reg.u.immconst_u32[0] = value & ((1ull << type->u.width) - 1);
|
||||
else
|
||||
dst->u.reg.u.immconst_uint64[0] = value;
|
||||
|
||||
|
Reference in New Issue
Block a user