[Mesa-dev] [PATCH] anv: fix assert in wsi image code.

Dave Airlie airlied at gmail.com
Tue Oct 10 23:47:03 UTC 2017


From: Dave Airlie <airlied at redhat.com>

This assert was firing just running demos.

Jason said it should be this.

Fixes: 6c7720ed78 (anv/wsi: Allocate enough memory for the entire image)
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/intel/vulkan/anv_wsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c
index fc0c288..08d83cd 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -239,7 +239,7 @@ anv_wsi_image_create(VkDevice device_h,
    memory->bo->flags |= EXEC_OBJECT_WRITE;
 
    anv_BindImageMemory(device_h, image_h, memory_h, 0);
-   assert(image->size == 0);
+   assert(image->planes[0].offset == 0);
 
    struct anv_surface *surface = &image->planes[0].surface;
    assert(surface->isl.tiling == ISL_TILING_X);
-- 
2.9.5



More information about the mesa-dev mailing list