From 310ca6ba4048dc3719945c438d70d1f1d7ab5689 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 25 Jun 2019 08:57:55 -0700 Subject: [PATCH] panfrost: Use pipe_surface->format directly in blitter Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers/panfrost/pan_blit.c index e6ef70ea7b8..959c7ae1c78 100644 --- a/src/gallium/drivers/panfrost/pan_blit.c +++ b/src/gallium/drivers/panfrost/pan_blit.c @@ -123,7 +123,7 @@ panfrost_blit_wallpaper(struct panfrost_context *ctx) binfo.src.box.height = binfo.dst.box.height = ctx->pipe_framebuffer.height; binfo.src.box.depth = binfo.dst.box.depth = 1; - binfo.src.format = binfo.dst.format = ctx->pipe_framebuffer.cbufs[0]->texture->format; + binfo.src.format = binfo.dst.format = ctx->pipe_framebuffer.cbufs[0]->format; assert(ctx->pipe_framebuffer.nr_cbufs == 1); binfo.mask = PIPE_MASK_RGBA; -- 2.30.2