radv: Refactor predication for compute queues.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 16 Jun 2022 14:40:45 +0000 (16:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Jul 2022 19:00:30 +0000 (19:00 +0000)
commite10cbb5d980b8476911de2fdff3e2e501c325c4d
treec1521d545858dde0695edef669c37af10903d4be
parent7131a05f92794d689593fa8383be5d9af7bdc060
radv: Refactor predication for compute queues.

Initialize the inverted predication VA only when it is used
for the first time.

This is needed to get conditional rendering work correctly with
task shaders because the internal compute cmdbuf may not exist
yet when conditional rendering starts.

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