mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
8e6621ce4c
commit
7bcb4e70e3
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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