summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-10-02 21:26:01 +0200
committerBas Nieuwenhuizen <[email protected]>2019-10-03 13:02:07 +0000
commit8ad3d8b178c0d8939db62ac2be9fdc98d127742d (patch)
treee5a99c786d7058264d3ed8464b96160de22d8d89 /src/amd/vulkan
parent4712fdf7ae97e8e81a7a9c6bbcfbed4c4e493123 (diff)
radv: Fix condition for skipping the continue CS.
We need the continue CS for referencing the tess/GDS/sample position BOs. Fixes: 46e52df34d3 "radv: add tessellation ring allocation support. (v2)" Fixes: e1dc3ab7534 "radv/gfx10: allocate GDS/OA buffer objects for NGG streamout" Fixes: 1171b304f30 "radv: overhaul fragment shader sample positions." Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index d3c412558ba..8965530ef28 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -2682,7 +2682,8 @@ radv_get_preamble_cs(struct radv_queue *queue,
*initial_full_flush_preamble_cs = queue->initial_full_flush_preamble_cs;
*initial_preamble_cs = queue->initial_preamble_cs;
*continue_preamble_cs = queue->continue_preamble_cs;
- if (!scratch_size && !compute_scratch_size && !esgs_ring_size && !gsvs_ring_size)
+ if (!scratch_size && !compute_scratch_size && !esgs_ring_size && !gsvs_ring_size &&
+ !needs_tess_rings && !needs_gds && !needs_sample_positions)
*continue_preamble_cs = NULL;
return VK_SUCCESS;
}