vk/cmd_queue: always ceil() param lens

this avoids rounding errors with pSampleMask for 64bit masks

cc: mesa-stable

(cherry picked from commit 95954b0981)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41402>
This commit is contained in:
Mike Blumenkrantz 2026-05-01 11:56:31 -04:00 committed by Eric Engestrom
parent 8e6621ce4c
commit 7bcb4e70e3
2 changed files with 2 additions and 2 deletions

View file

@ -1604,7 +1604,7 @@
"description": "vk/cmd_queue: always ceil() param lens",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -674,7 +674,7 @@ def get_param_copy(builder, command, types, src_parent_access, dst_parent_access
is_ndarray = param.len and "," in param.len
if param.len and param.len != "struct-ptr" and not is_ndarray:
size = "%s * %s%s" % (size, src_parent_access, param.len)
size = "%s * ceil(%s%s)" % (size, src_parent_access, param.len)
builder.add("%s = linear_alloc_child(queue->ctx, %s);" % (dst, size))
builder.add("if (%s == NULL) return NULL;" % (dst))