mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/d3d-asm: Do not dump a register's type if it's unused.
This commit is contained in:
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
@ -1378,6 +1378,9 @@ static void shader_dump_reg_type(struct vkd3d_d3d_asm_compiler *compiler,
|
||||
if (!(compiler->flags & VSIR_ASM_FLAG_DUMP_TYPES))
|
||||
return;
|
||||
|
||||
if (reg->data_type == VKD3D_DATA_UNUSED)
|
||||
return;
|
||||
|
||||
if (reg->dimension < ARRAY_SIZE(dimensions))
|
||||
dimension = dimensions[reg->dimension];
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user