diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-01-16 21:25:10 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-01-16 22:15:22 +0100 |
commit | 5ae4de18d93eb47fefe09b516189a2794f2e4a51 (patch) | |
tree | b3f9288d39e9e49e1974f57376b11f14e3842e30 /src/amd/vulkan/radv_private.h | |
parent | 8406f79d6a3511dc6bf4d9c2ab3a80828c363d3a (diff) |
radv: Support multiple devices.
Pretty straightforward. Also deleted the big comment block as it
is a pretty standard pattern for filling in arrays.
Also removed the error message on non-existent devices, as getting
7 errors printed to the console each time you enumerate the
devices is pretty confusing.
v2: Add constant for number of DRM devices.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 112c2a6e97e..0b8f50a5d6d 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -81,6 +81,7 @@ typedef uint32_t xcb_window_t; #define MAX_DYNAMIC_BUFFERS 16 #define MAX_SAMPLES_LOG2 4 #define NUM_META_FS_KEYS 11 +#define RADV_MAX_DRM_DEVICES 8 #define NUM_DEPTH_CLEAR_PIPELINES 3 @@ -290,7 +291,7 @@ struct radv_instance { uint32_t apiVersion; int physicalDeviceCount; - struct radv_physical_device physicalDevice; + struct radv_physical_device physicalDevices[RADV_MAX_DRM_DEVICES]; uint64_t debug_flags; }; |