Mesa (master): anv: fix assert in wsi image code.
Dave Airlie
airlied at kemper.freedesktop.org
Tue Oct 10 23:53:14 UTC 2017
Module: Mesa
Branch: master
Commit: 5be3fdfa327902d6385e3469ae76cca948091464
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5be3fdfa327902d6385e3469ae76cca948091464
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Oct 11 09:45:44 2017 +1000
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 <jason at jlekstrand.net>
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 fc0c2889d3..08d83cd7f7 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);
More information about the mesa-commit
mailing list