mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Use size_t in the parameter allocator.
The idea is to, by default, use size_t for any quantity that is a memory size or an array index.
This commit is contained in:
committed by
Henri Verbeet
parent
83e54bdc0c
commit
bb51b976df
Notes:
Henri Verbeet
2025-07-23 17:30:32 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1638
@@ -8652,7 +8652,7 @@ static void spirv_compiler_emit_branch(struct spirv_compiler *compiler,
|
||||
if (instruction->src_count == 3)
|
||||
spirv_compiler_emit_merge(compiler, src[1].reg.idx[0].offset, src[2].reg.idx[0].offset);
|
||||
else
|
||||
ERR("Invalid branch with %u sources.\n", instruction->src_count);
|
||||
ERR("Invalid branch with %zu sources.\n", instruction->src_count);
|
||||
}
|
||||
vkd3d_spirv_build_op_branch(builder, spirv_compiler_get_label_id(compiler, src[0].reg.idx[0].offset));
|
||||
return;
|
||||
@@ -8674,7 +8674,7 @@ static void spirv_compiler_emit_branch(struct spirv_compiler *compiler,
|
||||
spirv_compiler_emit_merge(compiler, src[3].reg.idx[0].offset,
|
||||
(instruction->src_count > 4) ? src[4].reg.idx[0].offset : 0);
|
||||
else
|
||||
ERR("Invalid branch with %u sources.\n", instruction->src_count);
|
||||
ERR("Invalid branch with %zu sources.\n", instruction->src_count);
|
||||
vkd3d_spirv_build_op_branch_conditional(builder, condition_id,
|
||||
spirv_compiler_get_label_id(compiler, src[1].reg.idx[0].offset),
|
||||
spirv_compiler_get_label_id(compiler, src[2].reg.idx[0].offset));
|
||||
|
Reference in New Issue
Block a user