mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/spirv: Use vsir_register_init() in spirv_compiler_get_invocation_id().
This commit is contained in:
parent
5d6899888d
commit
89d7bd7a81
Notes:
Alexandre Julliard
2023-09-26 22:47:43 +02: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/319
@ -4411,11 +4411,7 @@ static uint32_t spirv_compiler_get_invocation_id(struct spirv_compiler *compiler
|
||||
|
||||
assert(compiler->shader_type == VKD3D_SHADER_TYPE_HULL);
|
||||
|
||||
memset(&r, 0, sizeof(r));
|
||||
r.type = VKD3DSPR_OUTPOINTID;
|
||||
r.idx[0].offset = ~0u;
|
||||
r.idx[1].offset = ~0u;
|
||||
r.idx_count = 0;
|
||||
vsir_register_init(&r, VKD3DSPR_OUTPOINTID, VKD3D_DATA_FLOAT, 0);
|
||||
return spirv_compiler_get_register_id(compiler, &r);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user