Mesa (master): anv: Fix instance typos.

Jason Ekstrand jekstrand at kemper.freedesktop.org
Wed Oct 18 16:13:16 UTC 2017


Module: Mesa
Branch: master
Commit: c5124fbc74dca573fead4149d4287103a84ebae2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c5124fbc74dca573fead4149d4287103a84ebae2

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Wed Oct 18 08:12:27 2017 +0000

anv: Fix instance typos.

Fix build error.

  CC       vulkan/vulkan_libvulkan_common_la-anv_device.lo
In file included from vulkan/anv_device.c:33:0:
vulkan/anv_device.c: In function ‘anv_AllocateMemory’:
vulkan/anv_device.c:1562:37: error: ‘struct anv_device’ has no member named ‘instace’; did you mean ‘instance’?
          result = vk_errorf(device->instace, device,
                                     ^
vulkan/anv_private.h:317:17: note: in definition of macro ‘vk_errorf’
     __vk_errorf(instance, obj, REPORT_OBJECT_TYPE(obj), error,\
                 ^~~~~~~~

Fixes: 9775894f1025 ("anv: Move size check from anv_bo_cache_import() to caller (v2)")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

---

 src/intel/vulkan/anv_device.c | 2 +-
 src/intel/vulkan/anv_intel.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 546ed2d0ca..a305afebc3 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1559,7 +1559,7 @@ VkResult anv_AllocateMemory(
        * this sort of attack but only if it can trust the buffer size.
        */
       if (mem->bo->size < aligned_alloc_size) {
-         result = vk_errorf(device->instace, device,
+         result = vk_errorf(device->instance, device,
                             VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR,
                             "aligned allocationSize too large for "
                             "VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR: "
diff --git a/src/intel/vulkan/anv_intel.c b/src/intel/vulkan/anv_intel.c
index 885888e82d..82373f0c91 100644
--- a/src/intel/vulkan/anv_intel.c
+++ b/src/intel/vulkan/anv_intel.c
@@ -83,7 +83,7 @@ VkResult anv_CreateDmaBufImageINTEL(
    VkDeviceSize aligned_image_size = align_u64(image->size, 4096);
 
    if (mem->bo->size < aligned_image_size) {
-      result = vk_errorf(device->instace, device,
+      result = vk_errorf(device->instance, device,
                          VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR,
                          "dma-buf too small for image in "
                          "vkCreateDmaBufImageINTEL: %"PRIu64"B < "PRIu64"B",




More information about the mesa-commit mailing list