i965/nir/vec4: Add get_nir_dst() and get_nir_src() methods
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 16 Jun 2015 15:43:02 +0000 (17:43 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commitf3187ea31ede6bc181ee561573d127aa2e485657
tree228b36805ce6edc4594323468b1b8d53b2ce0fc2
parent97e205fd35bf77fd761caf24c611ff72cc0d85e2
i965/nir/vec4: Add get_nir_dst() and get_nir_src() methods

These methods are essential for the implementation of the NIR->vec4 pass. They
work similar to their fs_nir counter-parts.

When processing instructions, these methods are invoked to resolve the
brw registers (source or destination) corresponding to the NIR sources
or destination. It uses the map of NIR register index to brw register for
all registers locally allocated in a block.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp