radv: move radv_queue_ring() to radv_queue.c

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28551>
This commit is contained in:
Samuel Pitoiset
2024-04-02 17:26:02 +02:00
committed by Marge Bot
parent f606efe62d
commit 58cd24a636
3 changed files with 10 additions and 12 deletions
-12
View File
@@ -286,18 +286,6 @@ void llvm_compile_shader(const struct radv_nir_compiler_options *options, const
unsigned shader_count, struct nir_shader *const *shaders, struct radv_shader_binary **binary,
const struct radv_shader_args *args);
/*
* Queue helper to get ring.
* placed here as it needs queue + device structs.
*/
static inline enum amd_ip_type
radv_queue_ring(const struct radv_queue *queue)
{
struct radv_device *device = radv_queue_device(queue);
const struct radv_physical_device *pdev = radv_device_physical(device);
return radv_queue_family_to_ring(pdev, queue->state.qf);
}
#define RADV_FROM_HANDLE(__radv_type, __name, __handle) VK_FROM_HANDLE(__radv_type, __name, __handle)
#ifdef __cplusplus
+8
View File
@@ -1933,3 +1933,11 @@ radv_queue_finish(struct radv_queue *queue)
radv_queue_state_finish(&queue->state, device);
vk_queue_finish(&queue->vk);
}
enum amd_ip_type
radv_queue_ring(const struct radv_queue *queue)
{
struct radv_device *device = radv_queue_device(queue);
const struct radv_physical_device *pdev = radv_device_physical(device);
return radv_queue_family_to_ring(pdev, queue->state.qf);
}
+2
View File
@@ -126,4 +126,6 @@ enum radeon_ctx_priority radv_get_queue_global_priority(const VkDeviceQueueGloba
bool radv_queue_internal_submit(struct radv_queue *queue, struct radeon_cmdbuf *cs);
enum amd_ip_type radv_queue_ring(const struct radv_queue *queue);
#endif /* RADV_QUEUE_H */