i965/vec4: Change vec4_visitor::gather_channel() method to allow reuse
authorEduardo Lima Mitev <elima@igalia.com>
Thu, 18 Jun 2015 10:12:21 +0000 (12:12 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:50 +0000 (09:40 -0700)
commit57182332b84b58fed6641314def67450893b7419
tree118130139c6f2c8d2ce6ee3a2f8f28a1302ad6be
parent72c8d7721feb966cf8530a3ee2642f0b842dc0f8
i965/vec4: Change vec4_visitor::gather_channel() method to allow reuse

This patch changes the signature of gather_channel() to accept the gather
component directly instead of fetching it internally from ir_texture.
This will allow reuse in the upcoming NIR->vec4 pass.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp