mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 00:30:13 +01:00
zink: always use type size for query result copy stride
0 should be legal here since this is only copying 1 result at a time, but some drivers can't withstand the awesome power of zero strides, so just be safe and pass the type size Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12933>
This commit is contained in:
parent
13384b9626
commit
039ed2de94
1 changed files with 1 additions and 1 deletions
|
|
@ -563,7 +563,7 @@ copy_pool_results_to_buffer(struct zink_context *ctx, struct zink_query *query,
|
|||
util_range_add(&res->base.b, &res->valid_buffer_range, offset, offset + result_size);
|
||||
assert(query_id < NUM_QUERIES);
|
||||
VKCTX(CmdCopyQueryPoolResults)(batch->state->cmdbuf, pool, query_id, num_results, res->obj->buffer,
|
||||
offset, 0, flags);
|
||||
offset, type_size, flags);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue