v3dv: provide implementation for CmdSetViewportWithCount
As with CmdSetViewport, we need to provide a custom implementation because we want to call and save the outcome of viewport_compute_xform when the viewport is set, not during emission. We can just call v3dv_CmdSetViewport, as that one is already calling vk_common_SetViewportWithCount. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27609>
This commit is contained in:
committed by
Marge Bot
parent
f4d426fae6
commit
e3061e6281
@@ -2272,6 +2272,14 @@ v3dv_CmdSetViewport(VkCommandBuffer commandBuffer,
|
||||
}
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
v3dv_CmdSetViewportWithCount(VkCommandBuffer commandBuffer,
|
||||
uint32_t viewportCount,
|
||||
const VkViewport *pViewports)
|
||||
{
|
||||
v3dv_CmdSetViewport(commandBuffer, 0, viewportCount, pViewports);
|
||||
}
|
||||
|
||||
/* We keep a custom CmdSetScissor because we need to set the scissor
|
||||
* count. This is specially relevant to our case because we are
|
||||
* pushing/popping the dynamic state as part of the meta operations.
|
||||
|
||||
Reference in New Issue
Block a user