diff options
author | Dave Airlie <[email protected]> | 2017-10-11 09:45:44 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-10-11 09:52:57 +1000 |
commit | 5be3fdfa327902d6385e3469ae76cca948091464 (patch) | |
tree | 22968c9effe3178413dae4db30173bb3ca885156 /src/intel/vulkan | |
parent | 9926af0e7195c245d6b9d11b0fee6ba146987dbf (diff) |
anv: fix assert in wsi image code.
This assert was firing just running demos.
Jason said it should be this.
Fixes: 6c7720ed78 (anv/wsi: Allocate enough memory for the entire image)
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_wsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index fc0c2889d3d..08d83cd7f7d 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); |