diff options
author | Samuel Pitoiset <[email protected]> | 2018-08-16 11:22:37 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-08-16 14:11:48 +0200 |
commit | f3a78a9da01218df0067b24b52204a4e5f01bc69 (patch) | |
tree | e79ec8a80ff47dc1e77a245937dc0f1507ff1dea /src | |
parent | c5dd02287fdfc97c2560a53e909fac8046282a40 (diff) |
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 <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 7785ece8ce6..84f7bb42c45 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2307,6 +2307,7 @@ VkResult radv_BeginCommandBuffer( cmd_buffer->state.last_num_instances = -1; cmd_buffer->state.last_vertex_offset = -1; cmd_buffer->state.last_first_instance = -1; + cmd_buffer->state.predication_type = -1; cmd_buffer->usage_flags = pBeginInfo->flags; /* setup initial configuration into command buffer */ |