[Mesa-dev] [PATCH 2/2] anv: If softpin is supported, use it with the hiz clear value bo

Jason Ekstrand jason at jlekstrand.net
Wed Sep 26 09:44:50 UTC 2018


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Sep 25, 2018 at 6:27 PM Jordan Justen <jordan.l.justen at intel.com>
wrote:

> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Nanley Chery <nanley.g.chery at intel.com>
> Cc: Jason Ekstrand <jason at jlekstrand.net>
> ---
>  src/intel/vulkan/anv_device.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 265fc4a3347..4e64f595650 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -1569,6 +1569,15 @@ static void
>  anv_device_init_hiz_clear_value_bo(struct anv_device *device)
>  {
>     anv_bo_init_new(&device->hiz_clear_bo, device, 4096);
> +
> +   if (device->instance->physicalDevice.has_exec_async)
> +      device->hiz_clear_bo.flags |= EXEC_OBJECT_ASYNC;
> +
> +   if (device->instance->physicalDevice.use_softpin)
> +      device->hiz_clear_bo.flags |= EXEC_OBJECT_PINNED;
> +
> +   anv_vma_alloc(device, &device->hiz_clear_bo);
> +
>     uint32_t *map = anv_gem_mmap(device, device->hiz_clear_bo.gem_handle,
>                                  0, 4096, 0);
>
> --
> 2.18.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180926/dc8ab1ed/attachment.html>


More information about the mesa-dev mailing list