i965: Fix src0 vs src1 typo
authorMatt Turner <mattst88@gmail.com>
Tue, 3 Oct 2017 05:15:07 +0000 (22:15 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Oct 2017 21:08:24 +0000 (14:08 -0700)
commitd4079353278b115ca4d6596fdc84a64915ab4524
tree616e79ddc002a07adc33c37d759babf82cf57abb
parentad3d98da9faefd716bee5e2dc591bf3d4fb3321e
i965: Fix src0 vs src1 typo

A typo caused us to copy src0's reg file to src1 rather than reading
src1's as intended. This caused us to fail to compact instructions like

   mov(8)   g4<1>D    0D              { align1 1Q };

because src1 was set to immediate rather than architecture file. Fixing
this reenables compaction (after the precompact() pass changes the data
types):

   mov(8)   g4<1>UD   0x00000000UD    { align1 1Q compacted };

Fixes: 1cb0a7941b27 ("i965: Switch to using the logical register types")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_eu_compact.c