From 46bc37a8d0415d2ec47527003129996bcd2f70e7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 31 May 2021 03:15:10 +0530 Subject: [PATCH] asahi: Use dt_stride for line_stride where needed Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index fb3b9e5..fa76af1 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -199,6 +199,9 @@ agx_resource_create(struct pipe_screen *screen, NULL /*map_front_private*/, &nresource->dt_stride); + nresource->slices[0].line_stride = nresource->dt_stride; + assert((nresource->dt_stride & 0xF) == 0); + if (nresource->dt == NULL) { agx_bo_unreference(nresource->bo); FREE(nresource); -- 2.7.4