projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8050f61
)
nvk: Add an nvk_device_physical helper
author
Faith Ekstrand
<faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:48 +0000
(20:11 -0600)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000
(21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_device.h
patch
|
blob
|
history
diff --git
a/src/nouveau/vulkan/nvk_device.h
b/src/nouveau/vulkan/nvk_device.h
index
f771ff6
..
d32444c
100644
(file)
--- a/
src/nouveau/vulkan/nvk_device.h
+++ b/
src/nouveau/vulkan/nvk_device.h
@@
-22,4
+22,11
@@
struct nvk_device {
};
VK_DEFINE_HANDLE_CASTS(nvk_device, vk.base, VkDevice, VK_OBJECT_TYPE_DEVICE)
+
+static struct nvk_physical_device *
+nvk_device_physical(struct nvk_device *device)
+{
+ return (struct nvk_physical_device *)device->vk.physical;
+}
+
#endif