panfrost: Clarify intention with PIPE_SWIZZLE_X check

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-08-21 09:22:17 -07:00
parent 8fba6ab03d
commit 5bdc9096b7
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ panfrost_invert_swizzle(const unsigned char *in, unsigned char *out)
unsigned char i = in[c];
/* Who cares? */
if (i < PIPE_SWIZZLE_X || i > PIPE_SWIZZLE_W)
assert(PIPE_SWIZZLE_X == 0);
if (i > PIPE_SWIZZLE_W)
continue;
/* Invert */