i965/nir/vec4: Add setup of input variables in NIR->vec4 pass
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 16 Jun 2015 11:50:43 +0000 (13:50 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:46 +0000 (09:40 -0700)
commitb929acb6a8659fdc06623b766bdf59904d8a3558
treed4982d45f2b6be027bacafefd384ec75c0a812dc
parent78e7ce2b7329f8cc3f771afbf39d3fa662e02d9e
i965/nir/vec4: Add setup of input variables in NIR->vec4 pass

This implementation sets up a map of input variable offsets to source registers
that are already initialized with the corresponding register offset.

This map will then be queried when processing load_input intrinsic operations,
to obtain the correct register source from which the input data will be loaded.

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