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:
committed by
Marge Bot
parent
f606efe62d
commit
58cd24a636
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user