radv: Move up early exit for transfer queues in radv_get_preamble_cs.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16358>
This commit is contained in:
parent
4ea82fad24
commit
0f66ff2427
|
@ -3984,8 +3984,6 @@ radv_get_preamble_cs(struct radv_queue *queue, uint32_t scratch_size_per_wave,
|
||||||
bool add_tess_rings = false, add_gds = false, add_gds_oa = false, add_sample_positions = false;
|
bool add_tess_rings = false, add_gds = false, add_gds_oa = false, add_sample_positions = false;
|
||||||
uint32_t ring_bo_flags = RADEON_FLAG_NO_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING;
|
uint32_t ring_bo_flags = RADEON_FLAG_NO_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING;
|
||||||
VkResult result = VK_SUCCESS;
|
VkResult result = VK_SUCCESS;
|
||||||
if (queue->qf == RADV_QUEUE_TRANSFER)
|
|
||||||
return VK_SUCCESS;
|
|
||||||
|
|
||||||
if (!queue->has_tess_rings) {
|
if (!queue->has_tess_rings) {
|
||||||
if (needs_tess_rings)
|
if (needs_tess_rings)
|
||||||
|
@ -4181,7 +4179,6 @@ radv_get_preamble_cs(struct radv_queue *queue, uint32_t scratch_size_per_wave,
|
||||||
case RADV_QUEUE_COMPUTE:
|
case RADV_QUEUE_COMPUTE:
|
||||||
radv_init_compute_state(cs, queue);
|
radv_init_compute_state(cs, queue);
|
||||||
break;
|
break;
|
||||||
case RADV_QUEUE_TRANSFER:
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -4450,6 +4447,9 @@ radv_get_preambles(struct radv_queue *queue, struct vk_command_buffer *const *cm
|
||||||
struct radeon_cmdbuf **initial_preamble_cs,
|
struct radeon_cmdbuf **initial_preamble_cs,
|
||||||
struct radeon_cmdbuf **continue_preamble_cs)
|
struct radeon_cmdbuf **continue_preamble_cs)
|
||||||
{
|
{
|
||||||
|
if (queue->qf == RADV_QUEUE_TRANSFER)
|
||||||
|
return VK_SUCCESS;
|
||||||
|
|
||||||
uint32_t scratch_size_per_wave = 0, waves_wanted = 0;
|
uint32_t scratch_size_per_wave = 0, waves_wanted = 0;
|
||||||
uint32_t compute_scratch_size_per_wave = 0, compute_waves_wanted = 0;
|
uint32_t compute_scratch_size_per_wave = 0, compute_waves_wanted = 0;
|
||||||
uint32_t esgs_ring_size = 0, gsvs_ring_size = 0;
|
uint32_t esgs_ring_size = 0, gsvs_ring_size = 0;
|
||||||
|
|
Loading…
Reference in New Issue