intel/compiler: Reset default flag register in brw_find_live_channel()
authorMatt Turner <mattst88@gmail.com>
Tue, 22 Jan 2019 19:33:11 +0000 (11:33 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 24 Jan 2019 06:48:29 +0000 (22:48 -0800)
commite166003cb7a480fb2672b06201688d4717cbc316
tree1ff6bb883f3fb7f2930113eb5d7a956c31e2b069
parent74c9c906f901f86fa54b6b8e61c72449ca1b10f3
intel/compiler: Reset default flag register in brw_find_live_channel()

emit_uniformize() emits SHADER_OPCODE_FIND_LIVE_CHANNEL with its
flag_subreg set, so that the IR knows which flag is accessed. However
the flag is only used on Gen7 in Align1 mode.

To avoid setting unnecessary bits in the instruction words, get the
information we need and reset the default flag register. This allows
round-tripping through the assembler/disassembler.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_eu_emit.c