projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: fix fallthrough in glformats
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_glsl_to_tgsi_private.cpp
diff --git
a/src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp
index dabb0362a772414b076d9ec3595bf81e67f66d89..f259442cc37c033e52696a6f45ba0ed318aa1db8 100644
(file)
--- a/
src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp
+++ b/
src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp
@@
-24,9
+24,9
@@
*/
#include "st_glsl_to_tgsi_private.h"
*/
#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)
{
static int swizzle_for_type(const glsl_type *type, int component = 0)
{
@@
-116,7
+116,7
@@
st_src_reg::st_src_reg(gl_register_file file, int index, enum glsl_base_type typ
this->is_double_vertex_input = false;
}
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->type = GLSL_TYPE_ERROR;
this->file = PROGRAM_UNDEFINED;
@@
-133,6
+133,11
@@
st_src_reg::st_src_reg()
this->is_double_vertex_input = false;
}
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;
st_src_reg::st_src_reg(const st_src_reg ®)
{
*this = reg;