diff options
author | Paul Berry <[email protected]> | 2012-06-18 14:50:04 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-07-02 13:27:36 -0700 |
commit | 3f929efa2872aa5a4402520ec9fd551392e2413a (patch) | |
tree | fa71cc399a09981dfac0d16016719a2acb792f71 /src/mesa/drivers/dri/i965/brw_wm.c | |
parent | 8aa78c104a6fa9497cba558b54c41f6f2292bd74 (diff) |
i965/fs: Add FS_OPCODE_MOV_DISPATCH_TO_FLAGS to fragment shader backend.
In order to compute centroid varyings correctly, the fragment shader
needs to be able to load the current pixel/sample mask into a flag
register. This patch adds an opcode to the fragment shader back-end
to do this; the opcode gets translated into the instruction
mov(1) f0<1>UW g1.14<0,1,0>UW { align1 WE_all }
Since this instruction clobbers f0, instruction scheduling has to
treat it the same as instructions that have a conditional modifier.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.c')
0 files changed, 0 insertions, 0 deletions