vkd3d-shader/d3d-asm: Do not dump a register's type if it's unused.

This commit is contained in:
Giovanni Mascellani 2024-03-14 22:39:46 +01:00 committed by Alexandre Julliard
parent 22d19aed58
commit d418f49888
Notes: Alexandre Julliard 2024-03-18 23:25:50 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/721

View File

@ -1378,6 +1378,9 @@ static void shader_dump_reg_type(struct vkd3d_d3d_asm_compiler *compiler,
if (!(compiler->flags & VSIR_ASM_FLAG_DUMP_TYPES)) if (!(compiler->flags & VSIR_ASM_FLAG_DUMP_TYPES))
return; return;
if (reg->data_type == VKD3D_DATA_UNUSED)
return;
if (reg->dimension < ARRAY_SIZE(dimensions)) if (reg->dimension < ARRAY_SIZE(dimensions))
dimension = dimensions[reg->dimension]; dimension = dimensions[reg->dimension];
else else