i965: Attempt to un-muddle Gen6 data port message target defines.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 13 May 2011 14:49:27 +0000 (07:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 13 May 2011 22:19:31 +0000 (15:19 -0700)
commit17eaff77b09d356aae46c5d89a8eaa67cfa4c1e7
tree02a9e8751f5d35429d5141a3a34e82d6772a7f94
parent5f5d48671741ebadfcb91a58a1fc13816e19b886
i965: Attempt to un-muddle Gen6 data port message target defines.

These are documented on page 245 of IHD_OS_Vol4_Part2.pdf (the public
Sandybridge documentation/SEND instruction description).

Somebody had the bright idea to reuse gen4/5 defines labelled READ/WRITE
which just happened to be the same values as Render Cache/Sampler Cache.
It turns out that this field has nothing to do with READ/WRITE on
Sandybridge, but rather represents which data port to direct it to.

This was especially confusing in brw_set_dp_read_message, which
used "BRW_MESSAGE_TARGET_DATAPORT_WRITE."  In a read function.

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