i965/fs: Use the gen7 scratch read opcode when possible.
authorEric Anholt <eric@anholt.net>
Wed, 16 Oct 2013 18:51:22 +0000 (11:51 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 31 Oct 2013 00:51:19 +0000 (17:51 -0700)
commit8dfc9f038ee3f6a57f0a3f3cc641b0866a6111b7
treef895ceb519a9cd4eafe2e9e621ebb316fd222a73
parent6032261682388ced64bd33328a5025f561927a38
i965/fs: Use the gen7 scratch read opcode when possible.

This avoids a lot of message setup we had to do otherwise.  Improves
GLB2.7 performance with register spilling force enabled by 1.6442% +/-
0.553218% (n=4).

v2: Use BRW_PREDICATE_NONE, improve a comment (by Paul).

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp