i965/fs: Implement scratch read/write support for Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Jan 2014 23:49:56 +0000 (15:49 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Feb 2014 23:50:08 +0000 (15:50 -0800)
commite3823147a5f5e9c6234d8e89a55b79e8e9eb164c
treec5169eab6ba3fda740eff5de6a0e6b6b572bc518
parent29a69744034c37ebe1ba088fbc8bbd39b7a17875
i965/fs: Implement scratch read/write support for Broadwell.

To make sure that both the Gen4 and Gen7 style messages work, I
initially disabled the SHADER_OPCODE_GEN7_SCRATCH_READ optimization,
ran Piglit, re-enabled it, and ran Piglit again.  Both worked fine.

Fixes 40 Piglit tests (most of the varying-packing category).

v2: Move num_regs assertion from gen8_fs_generator to
    gen8_set_dp_scratch_message() (suggested by Eric).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen8_fs_generator.cpp