Skip to content
Commit 7673c72f authored by Lucas Stach's avatar Lucas Stach Committed by Juan A. Suarez Romero
Browse files

etnaviv: fix texture_format_needs_swiz



memcmp returns 0 when both swizzles are the same, which means we don't
need any hardware swizzling. texture_format_needs_swiz should return
true when the return value of the memcmp is non-zero.

Fixes: 751ae6af ("etnaviv: add support for swizzled texture formats")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Tested-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: default avatarWladimir J. van der Laan <laanwj@gmail.com>
(cherry picked from commit 52e93e30)
parent 264cda58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment