panfrost: Use pipe_surface->format directly in blitter
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 25 Jun 2019 15:57:55 +0000 (08:57 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 25 Jun 2019 20:39:18 +0000 (13:39 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_blit.c

index e6ef70ea7b8f7d24d5945de0e543401698877eae..959c7ae1c78a686538a8a2aa56460a247e34b345 100644 (file)
@@ -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;