i965: Implement a brw_load_register_mem helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Jan 2014 04:43:49 +0000 (20:43 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Feb 2014 20:36:38 +0000 (12:36 -0800)
commitb7c435b26124464f18672acd17416ddd840d306b
tree003c7e9651c7f9c748a617ac1fc2c3a0d896f37c
parent2f97119950515c841bca98a890e5110206bad945
i965: Implement a brw_load_register_mem helper function.

This saves some boilerplate and hides the OUT_RELOC/OUT_RELOC64
distinction.

Placing the function in intel_batchbuffer.c is rather arbitrary; there
wasn't really an obvious place for it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/intel_batchbuffer.c