mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
lvp: fixup multi draw memcpys
This doesn't fix the tests but it fixes a bunch of valgrind
uninitialised value warnings
Fixes: f99f7c06e7 ("lavapipe: implement multidraw ext")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-By: Joshua Ashton <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11870>
This commit is contained in:
parent
a18f434d58
commit
a3271b3f73
1 changed files with 2 additions and 2 deletions
|
|
@ -522,7 +522,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawMultiEXT(
|
|||
else {
|
||||
unsigned i = 0;
|
||||
vk_foreach_multi_draw(draw, i, pVertexInfo, drawCount, stride)
|
||||
memcpy(cmd->u.draw.draws, draw, sizeof(struct pipe_draw_start_count_bias));
|
||||
memcpy(&cmd->u.draw.draws[i], draw, sizeof(struct VkMultiDrawInfoEXT));
|
||||
}
|
||||
|
||||
cmd_buf_queue(cmd_buffer, cmd);
|
||||
|
|
@ -808,7 +808,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawMultiIndexedEXT(
|
|||
else {
|
||||
unsigned i = 0;
|
||||
vk_foreach_multi_draw_indexed(draw, i, pIndexInfo, drawCount, stride)
|
||||
memcpy(cmd->u.draw_indexed.draws, draw, sizeof(struct pipe_draw_start_count_bias));
|
||||
memcpy(&cmd->u.draw_indexed.draws[i], draw, sizeof(struct pipe_draw_start_count_bias));
|
||||
}
|
||||
/* only the first member is read if vertex_offset_changes is true */
|
||||
if (pVertexOffset)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue