i965/vec4: Add a helper function to emit VS_OPCODE_PULL_CONSTANT_LOAD
authorNeil Roberts <neil@linux.intel.com>
Wed, 15 Apr 2015 13:28:26 +0000 (14:28 +0100)
committerNeil Roberts <neil@linux.intel.com>
Thu, 16 Apr 2015 12:01:43 +0000 (13:01 +0100)
commita9e4cf5d323dbf11e42deda389ed03db571a7df7
tree784ae764fef9353af50511828050d0cee21b7121
parent037e0e78abf0c312f737d33f3c33e37b22bf226d
i965/vec4: Add a helper function to emit VS_OPCODE_PULL_CONSTANT_LOAD

There were three places in the visitor that had a similar chunk of
code to emit the VS_OPCODE_PULL_CONSTANT_LOAD opcode using a register
for the offset. This patch combines the chunks into a helper function
to reduce the code duplication. It will also be useful in the next
patch to expand what happens on Gen9+. This shouldn't introduce any
functional changes.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp