mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +02:00
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@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
9926af0e71
commit
5be3fdfa32
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue