radv: emit the guardband state separately from the scissor state
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 25 Aug 2022 09:01:43 +0000 (11:01 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 29 Aug 2022 19:40:36 +0000 (19:40 +0000)
commit40d8df728081e050b83ff0677ce4bf947e234a03
treed16f6df0fc9d3aac6cd88b9c0b12680712bcf5f5
parent3c2966fa1b00bcd85a02a0f453a640a3a97f37a3
radv: emit the guardband state separately from the scissor state

Only re-emit the scissor state if viewports or scissors change, and
only re-emit the guardband state if viewports, line width or the
current rasterized primitive change.

This should reduce the number of emitted packets when only the line
width or the rasterized primitive change.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18247>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h