radv: copy the number of viewports/scissors at pipeline bind time
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Sep 2017 12:03:30 +0000 (14:03 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Sep 2017 07:03:20 +0000 (09:03 +0200)
commit8e9e339c530c7b82b5a29d4b3183e8f5a01eae28
treec8243c0dab5ed95e258940aa3599aae789603c55
parent3a1b7efce84d1a2ca1842a5456694268ed0fd1e0
radv: copy the number of viewports/scissors at pipeline bind time

The number of viewports/scissors can only be specified at pipeline
creation time, so make sure to copy them when binding a new one
because the dynamic state is cleared in BeginCommandBuffer().

Fixes: dcf46e995d ("radv: do not update the number of scissors in vkCmdSetScissor()")
Fixes: 60878dd00c ("radv: do not update the number of viewports in vkCmdSetViewport()")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c