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:
Giovanni Mascellani
2025-07-22 10:01:45 +02:00
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
6 changed files with 29 additions and 29 deletions

View File

@@ -4087,14 +4087,14 @@ static void tpf_simple_instruction(struct tpf_compiler *tpf, const struct vkd3d_
if (ins->dst_count != dst_count)
{
ERR("Invalid destination count %u for vsir instruction %#x (expected %u).\n",
ERR("Invalid destination count %zu for vsir instruction %#x (expected %u).\n",
ins->dst_count, ins->opcode, dst_count);
tpf->result = VKD3D_ERROR_INVALID_SHADER;
return;
}
if (ins->src_count != src_count)
{
ERR("Invalid source count %u for vsir instruction %#x (expected %u).\n",
ERR("Invalid source count %zu for vsir instruction %#x (expected %u).\n",
ins->src_count, ins->opcode, src_count);
tpf->result = VKD3D_ERROR_INVALID_SHADER;
return;