i965: Add FS backend for builtin gl_SamplePosition
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 24 Oct 2013 22:53:05 +0000 (15:53 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 1 Nov 2013 23:01:48 +0000 (16:01 -0700)
commit65d0452bbc14c69ecd2cffdb38f711cfbaab348e
tree14bfb458f1f980a2bf1d87e2de48afec85a76b8e
parent81f5fb352a5a19ad79e385d9c444db4acdce621c
i965: Add FS backend for builtin gl_SamplePosition

V2:
   - Update comments.
   - Add compute_pos_offset variable in brw_wm_prog_key.
   - Add variable uses_pos_offset in brw_wm_prog_data.

V3:
   - Make changes to support simd16 mode.

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_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h