*/
#include "st_glsl_to_tgsi_private.h"
-#include <tgsi/tgsi_info.h>
-#include <mesa/program/prog_instruction.h>
-#include <mesa/program/prog_print.h>
+#include "tgsi/tgsi_info.h"
+#include "mesa/program/prog_instruction.h"
+#include "mesa/program/prog_print.h"
static int swizzle_for_type(const glsl_type *type, int component = 0)
{
this->is_double_vertex_input = false;
}
-st_src_reg::st_src_reg()
+void st_src_reg::reset()
{
this->type = GLSL_TYPE_ERROR;
this->file = PROGRAM_UNDEFINED;
this->is_double_vertex_input = false;
}
+st_src_reg::st_src_reg()
+{
+ reset();
+}
+
st_src_reg::st_src_reg(const st_src_reg ®)
{
*this = reg;