|
|
|
@@ -806,7 +806,6 @@ vec4_instruction::reswizzle_dst(int dst_writemask, int swizzle) |
|
|
|
break; |
|
|
|
default: |
|
|
|
for (int c = 0; c < 4; c++) { |
|
|
|
int bit = 1 << BRW_GET_SWZ(swizzle, c); |
|
|
|
/* Skip components of the swizzle not used by the dst. */ |
|
|
|
if (!(dst_writemask & (1 << c))) |
|
|
|
continue; |
|
|
|
@@ -814,7 +813,7 @@ vec4_instruction::reswizzle_dst(int dst_writemask, int swizzle) |
|
|
|
/* We don't do the reswizzling yet, so just sanity check that we |
|
|
|
* don't have to. |
|
|
|
*/ |
|
|
|
assert(bit == (1 << c)); |
|
|
|
assert((1 << BRW_GET_SWZ(swizzle, c)) == (1 << c)); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |