summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-08-25 13:39:05 +0200
committerEmil Velikov <[email protected]>2017-08-29 19:14:13 +0100
commit2c964f68a83ab5dff6770722e813b1baa0cbd250 (patch)
treea1d9aec95286d75df920661455dfa0f3e9941af3
parent5d5a13e375038e7dd9e758c9cb681273a34289c8 (diff)
etnaviv: use correct param for etna_compatible_rs_format(..)
Found by code inspection. Fixes: c9e8b49b885 ("etnaviv: gallium driver for Vivante GPUs") Cc: [email protected] Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> (cherry picked from commit 67fc3e37a7a38e279082848c064d5faacad44f54)
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_clear_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
index b832dd8f263..92c91073434 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
@@ -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 ||