i965/fs: Allow specifying arbitrary quarter control to FIND_LIVE_CHANNEL.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 20 May 2016 23:25:42 +0000 (16:25 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:29:04 +0000 (23:29 -0700)
commit41562eb8f33558f02ff8f53b3094a0e6d54e4c49
treec223ba1db4d1afb18a319c3c30f21cd08ad008ee
parenta5a08109608406438109bfa5def5a2af788d2840
i965/fs: Allow specifying arbitrary quarter control to FIND_LIVE_CHANNEL.

This makes FIND_LIVE_CHANNEL behave like a normal instruction for
non-zero quarter control.  On Gen8+ we just leave the quarter control
field of the emitted FBL instruction set to the default value so the
hardware applies the expected shift to the execution mask signals.  On
Gen7 we apply the offset manually by specifying a non-zero subregister
offset in the source region of the FBL instruction.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_eu_emit.c