i965: Rename BRW_MESSAGE_TARGET_* to BRW_SFID_* and document them.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Oct 2011 03:55:35 +0000 (20:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Oct 2011 22:57:55 +0000 (15:57 -0700)
commit2e124388a4642d1e7f5154e7b83d38578c6b2789
treee6dd8f2966cdab8dc7d63106ba3bb6c995449027
parentbbea5c5a5a7fb327d4ef03f80fe19cfa8d8edccd
i965: Rename BRW_MESSAGE_TARGET_* to BRW_SFID_* and document them.

When reading the data port code, it was not clear to me what these
values meant, nor where I could find them in the documentation.
Especially since the latest BSpec and older PRMs document them in
radically different places...neither of which are near the descriptions
of individual messages.

Cite the documentation, and rename them to SFID to signify that these
are Shared Function IDs that one can read about in the GPU overview,
rather than arbitrary bitfields.  While we're add it, make them an enum.

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_disasm.c
src/mesa/drivers/dri/i965/brw_eu_emit.c