vk/cmd_queue: always ceil() param lens
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

this avoids rounding errors with pSampleMask for 64bit masks

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41312>
This commit is contained in:
Mike Blumenkrantz 2026-05-01 11:56:31 -04:00 committed by Marge Bot
parent 547dc7a131
commit 95954b0981

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))