mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/spirv: Set the register index count in spirv_compiler_emit_default_control_point_phase().
This commit is contained in:
parent
9c6040df02
commit
532fe01818
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
@ -6309,6 +6309,7 @@ static void spirv_compiler_emit_default_control_point_phase(struct spirv_compile
|
||||
invocation.reg.idx[0].offset = ~0u;
|
||||
invocation.reg.idx[1].offset = ~0u;
|
||||
invocation.reg.idx[2].offset = ~0u;
|
||||
invocation.reg.idx_count = 0;
|
||||
invocation.swizzle = VKD3D_SHADER_NO_SWIZZLE;
|
||||
|
||||
memset(&input_reg, 0, sizeof(input_reg));
|
||||
@ -6316,6 +6317,7 @@ static void spirv_compiler_emit_default_control_point_phase(struct spirv_compile
|
||||
input_reg.data_type = VKD3D_DATA_FLOAT;
|
||||
input_reg.idx[0].rel_addr = &invocation;
|
||||
input_reg.idx[2].offset = ~0u;
|
||||
input_reg.idx_count = 2;
|
||||
input_id = spirv_compiler_get_register_id(compiler, &input_reg);
|
||||
|
||||
assert(input_signature->element_count == output_signature->element_count);
|
||||
|
Loading…
x
Reference in New Issue
Block a user