mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
vk/cmd_queue: always ceil() param lens
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:
parent
547dc7a131
commit
95954b0981
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue