Home
last modified time | relevance | path

Searched refs:dedicated (Results 1 - 25 of 27) sorted by relevance

12

/third_party/mesa3d/src/virtio/vulkan/
H A Dvn_buffer.c135 entries[i].requirements.dedicated = buf->requirements.dedicated; in vn_buffer_cache_entries_create()
311 buf->requirements.memory.pNext = &buf->requirements.dedicated; in vn_buffer_init()
312 buf->requirements.dedicated.sType = in vn_buffer_init()
314 buf->requirements.dedicated.pNext = NULL; in vn_buffer_init()
437 VkMemoryDedicatedRequirements *dedicated; in vn_GetBufferMemoryRequirements2() member
447 u.dedicated->prefersDedicatedAllocation = in vn_GetBufferMemoryRequirements2()
448 buf->requirements.dedicated.prefersDedicatedAllocation; in vn_GetBufferMemoryRequirements2()
449 u.dedicated->requiresDedicatedAllocation = in vn_GetBufferMemoryRequirements2()
450 buf->requirements.dedicated in vn_GetBufferMemoryRequirements2()
[all...]
H A Dvn_image.c69 img->requirements[i].memory.pNext = &img->requirements[i].dedicated; in vn_image_init_memory_requirements()
70 img->requirements[i].dedicated.sType = in vn_image_init_memory_requirements()
72 img->requirements[i].dedicated.pNext = NULL; in vn_image_init_memory_requirements()
86 /* AHB backed image requires dedicated allocation */ in vn_image_init_memory_requirements()
88 img->requirements[0].dedicated.prefersDedicatedAllocation = VK_TRUE; in vn_image_init_memory_requirements()
89 img->requirements[0].dedicated.requiresDedicatedAllocation = VK_TRUE; in vn_image_init_memory_requirements()
379 VkMemoryDedicatedRequirements *dedicated; in vn_GetImageMemoryRequirements2() member
407 u.dedicated->prefersDedicatedAllocation = in vn_GetImageMemoryRequirements2()
408 img->requirements[plane].dedicated.prefersDedicatedAllocation; in vn_GetImageMemoryRequirements2()
409 u.dedicated in vn_GetImageMemoryRequirements2()
[all...]
H A Dvn_device_memory.c217 * VkMemoryDedicatedAllocateInfo, or if dedicated allocation is required in vn_device_memory_should_suballocate()
220 const VkMemoryDedicatedAllocateInfo *dedicated = alloc_info->pNext; in vn_device_memory_should_suballocate() local
221 if (dedicated->sType != in vn_device_memory_should_suballocate()
223 dedicated->pNext) in vn_device_memory_should_suballocate()
226 const struct vn_image *img = vn_image_from_handle(dedicated->image); in vn_device_memory_should_suballocate()
229 if (img->requirements[i].dedicated.requiresDedicatedAllocation) in vn_device_memory_should_suballocate()
234 const struct vn_buffer *buf = vn_buffer_from_handle(dedicated->buffer); in vn_device_memory_should_suballocate()
235 if (buf && buf->requirements.dedicated.requiresDedicatedAllocation) in vn_device_memory_should_suballocate()
H A Dvn_buffer.h18 VkMemoryDedicatedRequirements dedicated; member
H A Dvn_image.h23 VkMemoryDedicatedRequirements dedicated; member
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/
H A DvktSynchronizationCrossInstanceSharingTests.cpp76 , dedicated (dedicated_) in TestConfig()
87 const bool dedicated; member
108 if (config.dedicated) in NotSupportedChecker()
208 if (!config.dedicated && (externalProperties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in NotSupportedChecker()
210 TCU_THROW(NotSupportedError, "Handle requires dedicated allocation, but test uses suballocated memory"); in NotSupportedChecker()
243 if (!config.dedicated && (properties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in NotSupportedChecker()
245 TCU_THROW(NotSupportedError, "Handle requires dedicated allocation, but test uses suballocated memory"); in NotSupportedChecker()
573 bool dedicated, in getMemoryRequirements()
601 if (!dedicated && dedicatedRequirements.requiresDedicatedAllocation) in getMemoryRequirements()
602 TCU_THROW(NotSupportedError, "Memory requires dedicated allocatio in getMemoryRequirements()
570 getMemoryRequirements(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkImage image, bool dedicated, bool getMemReq2Supported) getMemoryRequirements() argument
614 getMemoryRequirements(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkBuffer buffer, bool dedicated, bool getMemReq2Supported) getMemoryRequirements() argument
725 importAndBindMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkBuffer buffer, NativeHandle& nativeHandle, vk::VkExternalMemoryHandleTypeFlagBits externalType, deUint32 exportedMemoryTypeIndex, bool dedicated) importAndBindMemory() argument
743 importAndBindMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkImage image, NativeHandle& nativeHandle, vk::VkExternalMemoryHandleTypeFlagBits externalType, deUint32 exportedMemoryTypeIndex, bool dedicated) importAndBindMemory() argument
760 importResource(const vk::DeviceInterface& vkd, vk::VkDevice device, const ResourceDescription& resourceDesc, const std::vector<deUint32>& queueFamilyIndices, const OperationSupport& readOp, const OperationSupport& writeOp, NativeHandle& nativeHandle, vk::VkExternalMemoryHandleTypeFlagBits externalType, deUint32 exportedMemoryTypeIndex, bool dedicated) importResource() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/synchronization/
H A DvktSynchronizationCrossInstanceSharingTests.cpp76 , dedicated (dedicated_) in TestConfig()
87 const bool dedicated; member
108 if (config.dedicated) in NotSupportedChecker()
211 if (!config.dedicated && (externalProperties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in NotSupportedChecker()
213 TCU_THROW(NotSupportedError, "Handle requires dedicated allocation, but test uses suballocated memory"); in NotSupportedChecker()
246 if (!config.dedicated && (properties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in NotSupportedChecker()
248 TCU_THROW(NotSupportedError, "Handle requires dedicated allocation, but test uses suballocated memory"); in NotSupportedChecker()
576 bool dedicated, in getMemoryRequirements()
604 if (!dedicated && dedicatedRequirements.requiresDedicatedAllocation) in getMemoryRequirements()
605 TCU_THROW(NotSupportedError, "Memory requires dedicated allocatio in getMemoryRequirements()
573 getMemoryRequirements(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkImage image, bool dedicated, bool getMemReq2Supported) getMemoryRequirements() argument
617 getMemoryRequirements(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkBuffer buffer, bool dedicated, bool getMemReq2Supported) getMemoryRequirements() argument
728 importAndBindMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkBuffer buffer, NativeHandle& nativeHandle, vk::VkExternalMemoryHandleTypeFlagBits externalType, deUint32 exportedMemoryTypeIndex, bool dedicated) importAndBindMemory() argument
746 importAndBindMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkImage image, NativeHandle& nativeHandle, vk::VkExternalMemoryHandleTypeFlagBits externalType, deUint32 exportedMemoryTypeIndex, bool dedicated) importAndBindMemory() argument
763 importResource(const vk::DeviceInterface& vkd, vk::VkDevice device, const ResourceDescription& resourceDesc, const std::vector<deUint32>& queueFamilyIndices, const OperationSupport& readOp, const OperationSupport& writeOp, NativeHandle& nativeHandle, vk::VkExternalMemoryHandleTypeFlagBits externalType, deUint32 exportedMemoryTypeIndex, bool dedicated) importResource() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiExternalMemoryTests.cpp510 bool dedicated) in checkBufferSupport()
537 if (!dedicated && (properties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in checkBufferSupport()
538 TCU_THROW(NotSupportedError, "External handle type requires dedicated allocation"); in checkBufferSupport()
548 bool dedicated) in checkImageSupport()
594 if (!dedicated && (externalProperties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in checkImageSupport()
595 TCU_THROW(NotSupportedError, "External handle type requires dedicated allocation"); in checkImageSupport()
3164 // \note We need to re-create with dedicated mem extensions if previous device instance didn't have them in testBufferQueries()
3192 TCU_FAIL("vkGetPhysicalDeviceExternalBufferProperties and vkGetBufferMemoryRequirements2 report different dedicated requirements"); in testBufferQueries()
3196 // We can't query whether dedicated memory is required or not on per-object basis. in testBufferQueries()
3198 // VK_KHR_dedicated_allocation & VK_KHR_get_memory_requirements2 if dedicated memor in testBufferQueries()
505 checkBufferSupport(const vk::InstanceInterface& vki, vk::VkPhysicalDevice device, vk::VkExternalMemoryHandleTypeFlagBits externalType, vk::VkBufferViewCreateFlags createFlag, vk::VkBufferUsageFlags usageFlag, bool dedicated) checkBufferSupport() argument
541 checkImageSupport(const vk::InstanceInterface& vki, vk::VkPhysicalDevice device, vk::VkExternalMemoryHandleTypeFlagBits externalType, vk::VkImageViewCreateFlags createFlag, vk::VkImageUsageFlags usageFlag, vk::VkFormat format, vk::VkImageTiling tiling, bool dedicated) checkImageSupport() argument
3268 bool dedicated; global() member
3942 bool dedicated; global() member
4307 bool dedicated; global() member
[all...]
H A DvktApiMemoryRequirementInvarianceTests.cpp76 BufferAllocator (deRandom& random, deBool dedicated, std::vector<int>& memoryTypes);
90 BufferAllocator::BufferAllocator (deRandom& random, deBool dedicated, std::vector<int>& memoryTypes) in BufferAllocator() argument
92 // If dedicated allocation is supported, randomly pick it in BufferAllocator()
93 m_dedicated = dedicated && deRandom_getBool(&random); in BufferAllocator()
156 ImageAllocator (deRandom& random, deBool dedicated, std::vector<int>& linearformats, std::vector<int>& optimalformats, std::vector<int>& memoryTypes);
171 ImageAllocator::ImageAllocator (deRandom& random, deBool dedicated, std::vector<int>& linearformats, std::vector<int>& optimalformats, std::vector<int>& memoryTypes) in ImageAllocator() argument
173 // If dedicated allocation is supported, pick it randomly in ImageAllocator()
174 m_dedicated = dedicated && deRandom_getBool(&random); in ImageAllocator()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiExternalMemoryTests.cpp499 bool dedicated) in checkBufferSupport()
526 if (!dedicated && (properties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in checkBufferSupport()
527 TCU_THROW(NotSupportedError, "External handle type requires dedicated allocation"); in checkBufferSupport()
537 bool dedicated) in checkImageSupport()
583 if (!dedicated && (externalProperties.externalMemoryProperties.externalMemoryFeatures & vk::VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT) != 0) in checkImageSupport()
584 TCU_THROW(NotSupportedError, "External handle type requires dedicated allocation"); in checkImageSupport()
3146 // \note We need to re-create with dedicated mem extensions if previous device instance didn't have them in testBufferQueries()
3174 TCU_FAIL("vkGetPhysicalDeviceExternalBufferProperties and vkGetBufferMemoryRequirements2 report different dedicated requirements"); in testBufferQueries()
3178 // We can't query whether dedicated memory is required or not on per-object basis. in testBufferQueries()
3180 // VK_KHR_dedicated_allocation & VK_KHR_get_memory_requirements2 if dedicated memor in testBufferQueries()
494 checkBufferSupport(const vk::InstanceInterface& vki, vk::VkPhysicalDevice device, vk::VkExternalMemoryHandleTypeFlagBits externalType, vk::VkBufferViewCreateFlags createFlag, vk::VkBufferUsageFlags usageFlag, bool dedicated) checkBufferSupport() argument
530 checkImageSupport(const vk::InstanceInterface& vki, vk::VkPhysicalDevice device, vk::VkExternalMemoryHandleTypeFlagBits externalType, vk::VkImageViewCreateFlags createFlag, vk::VkImageUsageFlags usageFlag, vk::VkFormat format, vk::VkImageTiling tiling, bool dedicated) checkImageSupport() argument
3203 bool dedicated; global() member
3823 bool dedicated; global() member
4106 bool dedicated; global() member
[all...]
H A DvktApiMemoryRequirementInvarianceTests.cpp76 BufferAllocator (deRandom& random, deBool dedicated, std::vector<int>& memoryTypes);
90 BufferAllocator::BufferAllocator (deRandom& random, deBool dedicated, std::vector<int>& memoryTypes) in BufferAllocator() argument
92 // If dedicated allocation is supported, randomly pick it in BufferAllocator()
93 m_dedicated = dedicated && deRandom_getBool(&random); in BufferAllocator()
150 ImageAllocator (deRandom& random, deBool dedicated, std::vector<int>& linearformats, std::vector<int>& optimalformats, std::vector<int>& memoryTypes);
165 ImageAllocator::ImageAllocator (deRandom& random, deBool dedicated, std::vector<int>& linearformats, std::vector<int>& optimalformats, std::vector<int>& memoryTypes) in ImageAllocator() argument
167 // If dedicated allocation is supported, pick it randomly in ImageAllocator()
168 m_dedicated = dedicated && deRandom_getBool(&random); in ImageAllocator()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_texture.c1538 unsigned usage, bool dedicated) in si_texture_from_winsys_buffer()
1547 dedicated = false; in si_texture_from_winsys_buffer()
1549 if (dedicated) { in si_texture_from_winsys_buffer()
1553 * The bo metadata is unset for un-dedicated images. So we fall in si_texture_from_winsys_buffer()
1567 * objects use dedicated allocations. So lets keep the initial in si_texture_from_winsys_buffer()
1640 if (dedicated && offset == 0 && !(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) && in si_texture_from_winsys_buffer()
2211 si_memobj_from_handle(struct pipe_screen *screen, struct winsys_handle *whandle, bool dedicated) in si_memobj_from_handle() argument
2226 memobj->b.dedicated = dedicated; in si_memobj_from_handle()
2257 memobj->b.dedicated); in si_resource_from_memobj()
1534 si_texture_from_winsys_buffer(struct si_screen *sscreen, const struct pipe_resource *templ, struct pb_buffer *buf, unsigned stride, uint64_t offset, uint64_t modifier, unsigned usage, bool dedicated) si_texture_from_winsys_buffer() argument
[all...]
/third_party/mesa3d/src/gallium/include/pipe/
H A Dp_screen.h510 bool dedicated);
H A Dp_state.h1050 bool dedicated; member
/third_party/mesa3d/src/gallium/drivers/tegra/
H A Dtegra_screen.c555 bool dedicated) in tegra_screen_memobj_create_from_handle()
560 dedicated); in tegra_screen_memobj_create_from_handle()
553 tegra_screen_memobj_create_from_handle(struct pipe_screen *pscreen, struct winsys_handle *handle, bool dedicated) tegra_screen_memobj_create_from_handle() argument
/third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/
H A Ddd_screen.c443 bool dedicated) in dd_screen_memobj_create_from_handle()
447 return screen->memobj_create_from_handle(screen, handle, dedicated); in dd_screen_memobj_create_from_handle()
441 dd_screen_memobj_create_from_handle(struct pipe_screen *_screen, struct winsys_handle *handle, bool dedicated) dd_screen_memobj_create_from_handle() argument
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/
H A Dtr_screen.c1047 bool dedicated) in trace_screen_memobj_create_from_handle()
1054 trace_dump_arg(bool, dedicated); in trace_screen_memobj_create_from_handle()
1057 screen->memobj_create_from_handle(screen, handle, dedicated); in trace_screen_memobj_create_from_handle()
1045 trace_screen_memobj_create_from_handle(struct pipe_screen *_screen, struct winsys_handle *handle, bool dedicated) trace_screen_memobj_create_from_handle() argument
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/
H A DvktMemoryMappingTests.cpp743 "dedicated allocation of buffers",
744 "dedicated allocation of images"
1799 de::MovePtr<tcu::TestCaseGroup> dedicated (new tcu::TestCaseGroup(testCtx, "dedicated_alloc", "Dedicated memory mapping tests."));
1803 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "buffer", "Buffer dedicated memory mapping tests.")),
1804 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "image", "Image dedicated memory mapping tests."))
1954 dedicated->addChild(sets[1].release());
1955 dedicated->addChild(sets[2].release());
1956 group->addChild(dedicated.release());
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_texture.c1833 bool dedicated) in r600_memobj_from_handle()
1849 memobj->b.dedicated = dedicated; in r600_memobj_from_handle()
1884 if (memobj->b.dedicated) { in r600_texture_from_memobj()
1890 * The bo metadata is unset for un-dedicated images. So we fall in r600_texture_from_memobj()
1904 * objects use dedicated allocations. So lets keep the initial in r600_texture_from_memobj()
1831 r600_memobj_from_handle(struct pipe_screen *screen, struct winsys_handle *whandle, bool dedicated) r600_memobj_from_handle() argument
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_resource.cpp829 d3d12_memobj_create_from_handle(struct pipe_screen *pscreen, struct winsys_handle *handle, bool dedicated) in d3d12_memobj_create_from_handle() argument
871 memobj->base.dedicated = dedicated; in d3d12_memobj_create_from_handle()
883 if (dedicated != expect_dedicated) in d3d12_memobj_create_from_handle()
884 debug_printf("d3d12: Expected dedicated to be %s for imported %s\n", in d3d12_memobj_create_from_handle()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
H A DvktMemoryMappingTests.cpp791 "dedicated allocation of buffers",
792 "dedicated allocation of images"
1876 de::MovePtr<tcu::TestCaseGroup> dedicated (new tcu::TestCaseGroup(testCtx, "dedicated_alloc", "Dedicated memory mapping tests."));
1880 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "buffer", "Buffer dedicated memory mapping tests.")),
1881 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "image", "Image dedicated memory mapping tests."))
2056 dedicated->addChild(sets[1].release());
2057 dedicated->addChild(sets[2].release());
2058 group->addChild(dedicated.release());
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_resource.c1606 struct winsys_handle *whandle, bool dedicated) in fd_memobj_create_from_handle()
1618 memobj->b.dedicated = dedicated; in fd_memobj_create_from_handle()
1605 fd_memobj_create_from_handle(struct pipe_screen *pscreen, struct winsys_handle *whandle, bool dedicated) fd_memobj_create_from_handle() argument
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_resource.c1935 bool dedicated) in crocus_memobj_create_from_handle()
1974 memobj->b.dedicated = dedicated; in crocus_memobj_create_from_handle()
1933 crocus_memobj_create_from_handle(struct pipe_screen *pscreen, struct winsys_handle *whandle, bool dedicated) crocus_memobj_create_from_handle() argument
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_device.c1565 * min(max(128MB, 0.25f * (amount of dedicated VRAM)), 2GB), in dzn_GetPhysicalDeviceProperties2()
2271 const VkMemoryDedicatedAllocateInfo *dedicated = in dzn_device_memory_create() local
2274 buffer = dzn_buffer_from_handle(dedicated->buffer); in dzn_device_memory_create()
2275 image = dzn_image_from_handle(dedicated->image); in dzn_device_memory_create()
2660 /* TODO: figure out dedicated allocations */ in dzn_GetBufferMemoryRequirements2()
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_resource.c343 bool dedicated) in iris_memobj_create_from_handle()
369 memobj->b.dedicated = dedicated; in iris_memobj_create_from_handle()
1542 * dedicated allocation that can be exported by itself.
341 iris_memobj_create_from_handle(struct pipe_screen *pscreen, struct winsys_handle *whandle, bool dedicated) iris_memobj_create_from_handle() argument

Completed in 75 milliseconds

12