intel/fs: Make alpha test work with MRT and sample mask
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 27 Feb 2019 15:10:42 +0000 (17:10 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 25 Mar 2019 20:54:55 +0000 (13:54 -0700)
commite0db0c74b96b8a843e9260749ebbbcbacbabd139
treed126aa2a4df207e9b997318f90fd3b90faf56fc3
parentc8abe03f3b65505d2c1c165d88efb3bb62e06db1
intel/fs: Make alpha test work with MRT and sample mask

Fix the order of src0_alpha and sample mask in fb payload.
From SKL PRM Volume 7, "Data Payload Register Order
for Render Target Write Messages":
 Type   S0A  oM  sZ  oS  M2     M3       M4
 SIMD8   1   1   0   0   s0A    oM       R
 SIMD16  1   1   0   0   1/0s0A 3/2s0A   oM

It also fixes working of alpha to coverage with sample mask
on GEN6 since now they are in correct order.

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_fs.cpp