blitter: reformat some code

Related: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/125

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>.
macos/master
Gert Wollny 4 years ago
parent d7cc9787d7
commit da47de63a1
  1. 8
      src/vrend_blitter.c

@ -132,11 +132,13 @@ static void create_dest_swizzle_snippet(const uint8_t swizzle[4],
{
static const uint8_t invalid_swizzle = 0xff;
ssize_t si = 0;
uint8_t inverse[4] = {invalid_swizzle, invalid_swizzle, invalid_swizzle,
invalid_swizzle};
uint8_t inverse[4] = {invalid_swizzle, invalid_swizzle,
invalid_swizzle, invalid_swizzle};
for (int i = 0; i < 4; ++i) {
if (swizzle[i] > 3) continue;
if (swizzle[i] > 3)
continue;
if (inverse[swizzle[i]] == invalid_swizzle)
inverse[swizzle[i]] = i;
}

Loading…
Cancel
Save