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
@@ -1685,7 +1685,7 @@ static const struct vkd3d_sm1_opcode_info *shader_sm1_get_opcode_info_from_vsir_
|
||||
if (ins->dst_count != info->dst_count)
|
||||
{
|
||||
vkd3d_shader_error(d3dbc->message_context, &ins->location, VKD3D_SHADER_ERROR_D3DBC_INVALID_REGISTER_COUNT,
|
||||
"Invalid destination parameter count %u for instruction \"%s\" (%#x); expected %u.",
|
||||
"Invalid destination parameter count %zu for instruction \"%s\" (%#x); expected %u.",
|
||||
ins->dst_count, vsir_opcode_get_name(ins->opcode, "<unknown>"), ins->opcode, info->dst_count);
|
||||
d3dbc->failed = true;
|
||||
return NULL;
|
||||
@@ -1693,7 +1693,7 @@ static const struct vkd3d_sm1_opcode_info *shader_sm1_get_opcode_info_from_vsir_
|
||||
if (ins->src_count != info->src_count)
|
||||
{
|
||||
vkd3d_shader_error(d3dbc->message_context, &ins->location, VKD3D_SHADER_ERROR_D3DBC_INVALID_REGISTER_COUNT,
|
||||
"Invalid source parameter count %u for instruction \"%s\" (%#x); expected %u.",
|
||||
"Invalid source parameter count %zu for instruction \"%s\" (%#x); expected %u.",
|
||||
ins->src_count, vsir_opcode_get_name(ins->opcode, "<unknown>"), ins->opcode, info->src_count);
|
||||
d3dbc->failed = true;
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user