anv: Make the workaround BO a whole page
authorJason Ekstrand <jason@jlekstrand.net>
Sun, 23 Jun 2019 14:26:59 +0000 (09:26 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 10 Jul 2019 19:35:23 +0000 (19:35 +0000)
I'm not 100% sure how this ever worked because gem_create usually shoots
you if the BO size isn't page-aligned.

Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index bfba11fe8c92f9c8dab471c6305f5ee63ba32c2b..c6645a8e843f46efa8e950247a129f7fd15d75af 100644 (file)
@@ -2402,7 +2402,7 @@ VkResult anv_CreateDevice(
          goto fail_surface_state_pool;
    }
 
-   result = anv_bo_init_new(&device->workaround_bo, device, 1024);
+   result = anv_bo_init_new(&device->workaround_bo, device, 4096);
    if (result != VK_SUCCESS)
       goto fail_binding_table_pool;