i965: Add FS backend for builtin gl_SampleMask[]
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 24 Oct 2013 23:21:13 +0000 (16:21 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 1 Nov 2013 23:01:48 +0000 (16:01 -0700)
commite26bdf56a479f0da63da09793acbb0bcebeb29e4
tree2b6e5378ff7b4b8a57b3253373c7a2fa7711383d
parente12bbb503f71b60b9f212e82fdd3ed9aaf3ab318
i965: Add FS backend for builtin gl_SampleMask[]

V2:
   - Update comments
   - Add a special backend instructions to compute sample_mask.
   - Add a new variable uses_omask in brw_wm_prog_data.

V3:
   - Make changes to support simd16 mode.
   - Delete redundant AND instruction and handle the register
     stride in FS backend instruction.
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp