This common init routine can be used by constructors for multiple program
types.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
struct gl_fragment_program *fp,
unsigned dispatch_width);
~fs_visitor();
+ void init();
fs_reg *variable_storage(ir_variable *var);
int virtual_grf_alloc(int size);
{
this->fp = fp;
this->mem_ctx = mem_ctx;
+ init();
+}
+
+void
+fs_visitor::init()
+{
this->failed = false;
this->simd16_unsupported = false;
this->no16_msg = NULL;