[Mesa-dev] [PATCH] anv: Fill out protected memory properties

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Sep 28 15:05:46 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Fri, Sep 28, 2018 at 5:02 PM Jason Ekstrand <jason at jlekstrand.net> wrote:
>
> We don't support the protected memory feature but it's easy enough to
> fill out the properties struct to say that we don't support no-fault
> either.
>
> Fixes: 9c8b40001dde9 "anv: Support querying for protected memory"
> ---
>  src/intel/vulkan/anv_device.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index d9373ba3127..56bd113d3b4 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -1154,6 +1154,13 @@ void anv_GetPhysicalDeviceProperties2(
>           break;
>        }
>
> +      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: {
> +         VkPhysicalDeviceProtectedMemoryProperties *properties =
> +            (VkPhysicalDeviceProtectedMemoryProperties *)ext;
> +         properties->protectedNoFault = VK_FALSE;
> +         break;
> +      }
> +
>        case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: {
>           VkPhysicalDeviceSubgroupProperties *properties = (void *)ext;
>
> --
> 2.17.1
>
> _______________________________________________
> 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