[Mesa-dev] [PATCH] radv: return count of queue families written
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sun Dec 25 01:27:56 UTC 2016
On Sun, Dec 25, 2016 at 12:41 AM, Damien Grassart <damien at grassart.com> wrote:
> The Vulkan spec indicates that
> vkGetPhysicalDeviceQueueFamilyProperties() should overwrite
> pQueueFamilyPropertyCount with the number of structures actually
> written to pQueueFamilyProperties.
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
and pushed.
>
> Signed-off-by: Damien Grassart <damien at grassart.com>
> ---
> src/amd/vulkan/radv_device.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 47be5f743f..dcbb01547e 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -583,8 +583,10 @@ void radv_GetPhysicalDeviceQueueFamilyProperties(
> idx++;
> }
>
> - if (!all_queues)
> + if (!all_queues) {
> + *pCount = idx;
> return;
> + }
>
> if (pdevice->rad_info.compute_rings > 0 && pdevice->rad_info.chip_class >= CIK) {
> if (*pCount > idx) {
> @@ -597,6 +599,7 @@ void radv_GetPhysicalDeviceQueueFamilyProperties(
> idx++;
> }
> }
> + *pCount = idx;
> }
>
> void radv_GetPhysicalDeviceMemoryProperties(
> --
> 2.11.0
>
> _______________________________________________
> 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