The BO this function allocates is not a batch. Please change the commit message. Bonus points if you send another patch to rename the function.

On September 26, 2018 00:23:42 Jordan Justen <jordan.l.jus...@intel.com> wrote:

Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com>
Cc: Nanley Chery <nanley.g.ch...@intel.com>
---
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 0ea8be052fa..4e446c3280a 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1574,6 +1574,15 @@ static void
anv_device_init_hiz_clear_batch(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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev



_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to