intel/compiler: Set swizzle to BRW_SWIZZLE_XXXX for scalar region
authorSagar Ghuge <sagar.ghuge@intel.com>
Sun, 9 Dec 2018 05:50:36 +0000 (21:50 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 10 Dec 2018 18:06:55 +0000 (10:06 -0800)
commite7598c5a628cd86e76bf53b9467934357d890e5c
treec877d8b80f460711b3b3ff723ad038c3c440de5d
parent6d3cbbbe15e54e8a294d5838519e24f411f08c04
intel/compiler: Set swizzle to BRW_SWIZZLE_XXXX for scalar region

When RepCtrl is set, the swizzle field is ignored by the hardware. In
order to ensure a 1-to-1 correspondence between the human-readable
disassembly and the binary instruction encoding always set the swizzle
to XXXX (all zeros) when it is unused due to RepCtrl

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_eu_emit.c