etnaviv: use correct param for etna_compatible_rs_format(..)
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 25 Aug 2017 11:39:05 +0000 (13:39 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 26 Aug 2017 15:20:39 +0000 (17:20 +0200)
Found by code inspection.

Fixes: c9e8b49b885 ("etnaviv: gallium driver for Vivante GPUs")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c

index b832dd8f2634ffae0fa173191088a9a4f66a4397..92c91073434a92de6b35d762737a42623451fa01 100644 (file)
@@ -396,7 +396,7 @@ etna_try_rs_blit(struct pipe_context *pctx,
    }
 
    unsigned src_format = etna_compatible_rs_format(blit_info->src.format);
-   unsigned dst_format = etna_compatible_rs_format(blit_info->src.format);
+   unsigned dst_format = etna_compatible_rs_format(blit_info->dst.format);
    if (translate_rs_format(src_format) == ETNA_NO_MATCH ||
        translate_rs_format(dst_format) == ETNA_NO_MATCH ||
        blit_info->scissor_enable || blit_info->src.box.x != 0 ||