mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/spirv: Use the register index count in I/O relative address assertions.
This commit is contained in:
parent
06dd0ccd4c
commit
4a64cf74c3
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
@ -4469,8 +4469,8 @@ static uint32_t spirv_compiler_emit_input(struct spirv_compiler *compiler,
|
||||
unsigned int element_idx;
|
||||
uint32_t i, index;
|
||||
|
||||
assert(!reg->idx[0].rel_addr);
|
||||
assert(!reg->idx[1].rel_addr);
|
||||
assert(!reg->idx_count || !reg->idx[0].rel_addr);
|
||||
assert(reg->idx_count < 2 || !reg->idx[1].rel_addr);
|
||||
|
||||
shader_signature = reg->type == VKD3DSPR_PATCHCONST
|
||||
? &compiler->patch_constant_signature : &compiler->input_signature;
|
||||
|
Loading…
x
Reference in New Issue
Block a user