mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/spirv: Use the register index count in non-I/O variable registers in vkd3d_symbol_make_register().
This commit is contained in:
parent
ec5f195b6b
commit
b3927726cc
Notes:
Alexandre Julliard
2023-05-26 22:16:37 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/213
@ -2064,7 +2064,7 @@ static void vkd3d_symbol_make_register(struct vkd3d_symbol *symbol,
|
|||||||
assert(!reg->idx_count || symbol->key.reg.idx != ~0u);
|
assert(!reg->idx_count || symbol->key.reg.idx != ~0u);
|
||||||
}
|
}
|
||||||
else if (reg->type != VKD3DSPR_IMMCONSTBUFFER)
|
else if (reg->type != VKD3DSPR_IMMCONSTBUFFER)
|
||||||
symbol->key.reg.idx = reg->idx[0].offset;
|
symbol->key.reg.idx = reg->idx_count ? reg->idx[0].offset : ~0u;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vkd3d_symbol_set_register_info(struct vkd3d_symbol *symbol,
|
static void vkd3d_symbol_set_register_info(struct vkd3d_symbol *symbol,
|
||||||
|
Loading…
Reference in New Issue
Block a user