OSDN Git Service

i965/fs: Use the GRF for FB writes on gen >= 7
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 12 Sep 2014 23:17:37 +0000 (16:17 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:15 +0000 (10:29 -0700)
commit514fd1c55e617bb325979cbee4a89f0727c3b567
treecbacd36b7ed0083887d31a5d8e51a24919f65552
parent1dd9b90ecd8e001b40febfb8908c0b9a0c08c7d5
i965/fs: Use the GRF for FB writes on gen >= 7

   On gen 7, the MRF was removed and we gained the ability to do send
   instructions directly from the GRF.  This commit enables that
   functinoality for FB writes.

   v2: Make handling of components more sane.

i965/fs: Force a high register for the final FB write

   v2: Renamed the array for the range mappings and added a comment

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/intel_screen.h