"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gallium/frontends/lavapipe/lvp_cmd_buffer.c" between
mesa-21.2.0-rc1.tar.xz and mesa-21.2.0-rc2.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

lvp_cmd_buffer.c  (mesa-21.2.0-rc1.tar.xz):lvp_cmd_buffer.c  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 525 skipping to change at line 525
return; return;
cmd->u.draw.instance_count = instanceCount; cmd->u.draw.instance_count = instanceCount;
cmd->u.draw.first_instance = firstInstance; cmd->u.draw.first_instance = firstInstance;
cmd->u.draw.draw_count = drawCount; cmd->u.draw.draw_count = drawCount;
if (stride == sizeof(struct pipe_draw_start_count_bias)) if (stride == sizeof(struct pipe_draw_start_count_bias))
memcpy(cmd->u.draw.draws, pVertexInfo, cmd_size); memcpy(cmd->u.draw.draws, pVertexInfo, cmd_size);
else { else {
unsigned i = 0; unsigned i = 0;
vk_foreach_multi_draw(draw, i, pVertexInfo, drawCount, stride) vk_foreach_multi_draw(draw, i, pVertexInfo, drawCount, stride)
memcpy(cmd->u.draw.draws, draw, sizeof(struct pipe_draw_start_count_bia s)); memcpy(&cmd->u.draw.draws[i], draw, sizeof(struct VkMultiDrawInfoEXT));
} }
cmd_buf_queue(cmd_buffer, cmd); cmd_buf_queue(cmd_buffer, cmd);
} }
VKAPI_ATTR void VKAPI_CALL lvp_CmdEndRenderPass2( VKAPI_ATTR void VKAPI_CALL lvp_CmdEndRenderPass2(
VkCommandBuffer commandBuffer, VkCommandBuffer commandBuffer,
const VkSubpassEndInfo* pSubpassEndInfo) const VkSubpassEndInfo* pSubpassEndInfo)
{ {
LVP_FROM_HANDLE(lvp_cmd_buffer, cmd_buffer, commandBuffer); LVP_FROM_HANDLE(lvp_cmd_buffer, cmd_buffer, commandBuffer);
skipping to change at line 810 skipping to change at line 810
cmd->u.draw_indexed.instance_count = instanceCount; cmd->u.draw_indexed.instance_count = instanceCount;
cmd->u.draw_indexed.first_instance = firstInstance; cmd->u.draw_indexed.first_instance = firstInstance;
cmd->u.draw_indexed.draw_count = drawCount; cmd->u.draw_indexed.draw_count = drawCount;
cmd->u.draw_indexed.vertex_offset_changes = !pVertexOffset; cmd->u.draw_indexed.vertex_offset_changes = !pVertexOffset;
if (stride == sizeof(struct pipe_draw_start_count_bias)) if (stride == sizeof(struct pipe_draw_start_count_bias))
memcpy(cmd->u.draw_indexed.draws, pIndexInfo, cmd_size); memcpy(cmd->u.draw_indexed.draws, pIndexInfo, cmd_size);
else { else {
unsigned i = 0; unsigned i = 0;
vk_foreach_multi_draw_indexed(draw, i, pIndexInfo, drawCount, stride) vk_foreach_multi_draw_indexed(draw, i, pIndexInfo, drawCount, stride)
memcpy(cmd->u.draw_indexed.draws, draw, sizeof(struct pipe_draw_start_c ount_bias)); memcpy(&cmd->u.draw_indexed.draws[i], draw, sizeof(struct pipe_draw_sta rt_count_bias));
} }
/* only the first member is read if vertex_offset_changes is true */ /* only the first member is read if vertex_offset_changes is true */
if (pVertexOffset) if (pVertexOffset)
cmd->u.draw_indexed.draws[0].index_bias = *pVertexOffset; cmd->u.draw_indexed.draws[0].index_bias = *pVertexOffset;
cmd->u.draw_indexed.calc_start = true; cmd->u.draw_indexed.calc_start = true;
cmd_buf_queue(cmd_buffer, cmd); cmd_buf_queue(cmd_buffer, cmd);
} }
VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawIndirect( VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawIndirect(
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)