i965/vec4: Remove dependency of vec4_instruction on the visitor class.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 5 Feb 2015 23:25:50 +0000 (01:25 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 14:05:50 +0000 (16:05 +0200)
commit4ed52e8bc418b7a378c31664343684e4401e0868
tree17649dfbe29a9413271fb23773f1c779ab723d73
parenta3ee6c7d1991a90d22fae992c1cb94123e51ae54
i965/vec4: Remove dependency of vec4_instruction on the visitor class.

The only reason why you need a vec4_visitor to construct a
vec4_instruction is to initialize vec4_instruction::ir and
::annotation.  Instead set them from vec4_visitor::emit() just like
fs_visitor does.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_ir_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp