mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
radv: move physical device related code to radv_physical_device.c
radv_device.c is getting too big and this follows the Vulkan common runtime infrastructure. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21767>
This commit is contained in:
parent
06fa90e14e
commit
4e5db63482
4 changed files with 2879 additions and 2811 deletions
|
|
@ -95,6 +95,7 @@ libradv_files = files(
|
|||
'radv_nir_lower_ray_queries.c',
|
||||
'radv_nir_lower_vs_inputs.c',
|
||||
'radv_perfcounter.c',
|
||||
'radv_physical_device.c',
|
||||
'radv_pipeline.c',
|
||||
'radv_pipeline_cache.c',
|
||||
'radv_pipeline_rt.c',
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
2871
src/amd/vulkan/radv_physical_device.c
Normal file
2871
src/amd/vulkan/radv_physical_device.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -145,6 +145,11 @@ extern "C"
|
|||
#define radv_printflike(a, b) __attribute__((__format__(__printf__, a, b)))
|
||||
#endif
|
||||
|
||||
/* The "RAW" clocks on Linux are called "FAST" on FreeBSD */
|
||||
#if !defined(CLOCK_MONOTONIC_RAW) && defined(CLOCK_MONOTONIC_FAST)
|
||||
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
|
||||
#endif
|
||||
|
||||
static inline uint32_t
|
||||
align_u32(uint32_t v, uint32_t a)
|
||||
{
|
||||
|
|
@ -378,6 +383,8 @@ VkResult create_drm_physical_device(struct vk_instance *vk_instance, struct _drm
|
|||
|
||||
void radv_physical_device_destroy(struct vk_physical_device *vk_device);
|
||||
|
||||
bool radv_thread_trace_enabled(void);
|
||||
|
||||
struct radv_instance {
|
||||
struct vk_instance vk;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue