mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Fix the register string for patch arrays in debug_register().
This commit is contained in:
Notes:
Henri Verbeet
2025-05-24 21:48:08 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1509
@@ -5754,7 +5754,7 @@ static const char *debug_register(char class, struct hlsl_reg reg, const struct
|
|||||||
static const char writemask_offset[] = {'w','x','y','z'};
|
static const char writemask_offset[] = {'w','x','y','z'};
|
||||||
unsigned int reg_size = type->reg_size[HLSL_REGSET_NUMERIC];
|
unsigned int reg_size = type->reg_size[HLSL_REGSET_NUMERIC];
|
||||||
|
|
||||||
if (reg_size > 4)
|
if (reg_size > 4 && !hlsl_type_is_patch_array(type))
|
||||||
{
|
{
|
||||||
if (reg_size & 3)
|
if (reg_size & 3)
|
||||||
return vkd3d_dbg_sprintf("%c%u-%c%u.%c", class, reg.id, class, reg.id + (reg_size / 4),
|
return vkd3d_dbg_sprintf("%c%u-%c%u.%c", class, reg.id, class, reg.id + (reg_size / 4),
|
||||||
|
Reference in New Issue
Block a user