summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-03 01:25:03 -0700
committerKenneth Graunke <[email protected]>2016-04-03 17:33:38 -0700
commit40628886ca892f4b43f37335d3efbad55fb3c8bd (patch)
tree9ad495d1fe7c322f8a0726f22946ece4b4366f54 /src/compiler
parent7ad49daca61a638f5029fedacd98357943c67ea8 (diff)
glsl: Print "precise" on ir_variable nodes.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/ir_print_visitor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp
index 960b23fe0ed..e06acce782a 100644
--- a/src/compiler/glsl/ir_print_visitor.cpp
+++ b/src/compiler/glsl/ir_print_visitor.cpp
@@ -173,6 +173,7 @@ void ir_print_visitor::visit(ir_variable *ir)
const char *const samp = (ir->data.sample) ? "sample " : "";
const char *const patc = (ir->data.patch) ? "patch " : "";
const char *const inv = (ir->data.invariant) ? "invariant " : "";
+ const char *const prec = (ir->data.precise) ? "precise " : "";
const char *const mode[] = { "", "uniform ", "shader_storage ",
"shader_shared ", "shader_in ", "shader_out ",
"in ", "out ", "inout ",
@@ -182,8 +183,8 @@ void ir_print_visitor::visit(ir_variable *ir)
const char *const interp[] = { "", "smooth", "flat", "noperspective" };
STATIC_ASSERT(ARRAY_SIZE(interp) == INTERP_QUALIFIER_COUNT);
- fprintf(f, "(%s%s%s%s%s%s%s%s) ",
- loc, cent, samp, patc, inv, mode[ir->data.mode],
+ fprintf(f, "(%s%s%s%s%s%s%s%s%s) ",
+ loc, cent, samp, patc, inv, prec, mode[ir->data.mode],
stream[ir->data.stream],
interp[ir->data.interpolation]);