[Mesa-dev] [PATCH] anv: Always set has_context_priority

Kenneth Graunke kenneth at whitecape.org
Thu Mar 1 00:03:42 UTC 2018


On Wednesday, February 28, 2018 3:29:00 PM PST Jason Ekstrand wrote:
> We don't zalloc the physical device so we need to unconditionally set
> everything.  Crucible helpfully initializes all allocations to 139 so it
> was getting true regardless of whether or not the kernel actually
> supports context priorities.
> 
> Fixes: 6d8ab53303331 "anv: implement VK_EXT_global_priority extension"
> Cc: Tapani Pälli <tapani.palli at intel.com>
> ---
>  src/intel/vulkan/anv_device.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 56c0c5f..3d44bfd 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -374,9 +374,7 @@ anv_physical_device_init(struct anv_physical_device *device,
>     device->has_syncobj = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_FENCE_ARRAY);
>     device->has_syncobj_wait = device->has_syncobj &&
>                                anv_gem_supports_syncobj_wait(fd);
> -
> -   if (anv_gem_has_context_priority(fd))
> -      device->has_context_priority = true;
> +   device->has_context_priority = anv_gem_has_context_priority(fd);
>  
>     bool swizzled = anv_gem_get_bit6_swizzle(fd, I915_TILING_X);
>  
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180228/a6985abb/attachment.sig>


More information about the mesa-dev mailing list