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

Jason Ekstrand jason at jlekstrand.net
Tue Oct 10 23:52:11 UTC 2017


Bah...

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Oct 10, 2017 at 4:47 PM, Dave Airlie <airlied at gmail.com> wrote:

> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171010/bc385514/attachment.html>


More information about the mesa-dev mailing list