mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
radv: do not update the number of scissors in vkCmdSetScissor()
The Vulkan spec (1.0.61) says:
"The number of scissors used by a pipeline is still specified
by the scissorCount member of VkPipelinescissorStateCreateInfo."
So, the number of scissors is defined at pipeline creation
time and shouldn't be updated when they are set dynamically.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
60878dd00c
commit
dcf46e995d
1 changed files with 0 additions and 3 deletions
|
|
@ -2520,9 +2520,6 @@ void radv_CmdSetScissor(
|
|||
assert(firstScissor < MAX_SCISSORS);
|
||||
assert(total_count >= 1 && total_count <= MAX_SCISSORS);
|
||||
|
||||
if (cmd_buffer->state.dynamic.scissor.count < total_count)
|
||||
cmd_buffer->state.dynamic.scissor.count = total_count;
|
||||
|
||||
memcpy(cmd_buffer->state.dynamic.scissor.scissors + firstScissor,
|
||||
pScissors, scissorCount * sizeof(*pScissors));
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_SCISSOR;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue