radv: track DB_COUNT_CONTROL changes to avoid context rolls
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Apr 2023 12:01:51 +0000 (14:01 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 16:25:09 +0000 (16:25 +0000)
commitc1d32880f7ba767f4d36c8e1bd239311855043a8
treef85622db5748840268a59b5123a94e61312e88b6
parent02443d752e83d470f400af004e3702fb8f7d8ce3
radv: track DB_COUNT_CONTROL changes to avoid context rolls

This can be really noticeable for the BeginQuery/Draw/EndQuery pattern.
It seems to improve a depth-only pass by +35% in one upcoming game
because this removes a bunch of context rolls.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22556>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h