[Mesa-dev] [PATCH] radv: don't set dedicated bit for buffer external memory.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Jul 24 07:23:38 UTC 2017
Not even sure why that bit still exists, but
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Mon, Jul 24, 2017 at 9:16 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This is an alternate fix for the buffer export dedicated interaction.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/amd/vulkan/radv_formats.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
> index 7c3bbc0..57bde9e 100644
> --- a/src/amd/vulkan/radv_formats.c
> +++ b/src/amd/vulkan/radv_formats.c
> @@ -1300,8 +1300,7 @@ void radv_GetPhysicalDeviceExternalBufferPropertiesKHR(
> VkExternalMemoryHandleTypeFlagsKHR compat_flags = 0;
> switch(pExternalBufferInfo->handleType) {
> case VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR:
> - flags = VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_KHR |
> - VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_KHR |
> + flags = VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_KHR |
> VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_KHR;
> compat_flags = export_flags = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR;
> break;
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list