i956: Add a function to load a 64-bit register from a buffer
authorNeil Roberts <neil@linux.intel.com>
Mon, 11 May 2015 13:00:42 +0000 (14:00 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 12 May 2015 10:20:35 +0000 (11:20 +0100)
commit9585879d46fe412cbcfd50510e59e8ffe85b055f
tree808b65291f4c8ab51b23b2b951ac1ec1d3e63dbb
parent8a59f2f26fb7bb036ad524cdec668716664d2a82
i956: Add a function to load a 64-bit register from a buffer

Adds brw_load_register_mem64 which is similar to brw_load_register_mem
except that it queues two GEN7_MI_LOAD_REGISTER_MEM commands in order
to load both halves of a 64-bit register. The function is implemented
by splitting the 32-bit version into an internal helper function which
takes a size.

This will later be used to set the 64-bit predicate source registers.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/intel_batchbuffer.c