radv: fix missing initialization of the conditional rendering state
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 16 Aug 2018 09:22:37 +0000 (11:22 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 16 Aug 2018 12:11:48 +0000 (14:11 +0200)
commitf3a78a9da01218df0067b24b52204a4e5f01bc69
treee79ec8a80ff47dc1e77a245937dc0f1507ff1dea
parentc5dd02287fdfc97c2560a53e909fac8046282a40
radv: fix missing initialization of the conditional rendering state

This was missing when VK_EXT_conditional_rendering has been
implemented. The predication type should be -1 to avoid
restoring previous state when performing a decompression pass
with DCC enabled.

Note that we don't have to handle secondary command buffers
because we don't support this feature currently.

CC: 18.2 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c