i965: Introduce a new brw_inst API.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Jun 2014 00:07:30 +0000 (17:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jun 2014 18:44:24 +0000 (11:44 -0700)
commitd49a9ca8c2d93036fe8187bd845339a34cb1f84e
treed54e6e29d6023b167459e6b78bd3bc0b1404afd2
parent05040d6f8fcfdc4fb070c7ff24d3990ffede77f1
i965: Introduce a new brw_inst API.

This is similar to gen8_instruction, and will eventually replace it.

For now nothing uses this, but we can incrementally convert.
The new API takes the existing brw_instruction pointers to ease
conversion; when done, we can simply drop the old structure and rename
struct brw_instruction -> brw_inst.

v2: (by Matt Turner) Make JIP/UIP functions take a signed argument.
v3: (by Kenneth Graunke)
 - Make Gen4-6 jump target functions take a signed argument.
 - Fix indirect align1 AddrImm bits on Gen4-7.
 - Fix SFID on Sandybridge to use bits 27:24.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> [v1, v3+]
Signed-off-by: Matt Turner <mattst88@gmail.com> [v2]
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_inst.h [new file with mode: 0644]