diff options
author | marha <marha@users.sourceforge.net> | 2013-10-03 13:20:50 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-10-03 13:20:50 +0200 |
commit | 5593a3d2f370e3e12a043110bf2e395c938980d6 (patch) | |
tree | bf6a62f84ae8d2071b83a0a723f2937c058a7f1b /mesalib/src/glsl/ir_set_program_inouts.cpp | |
parent | 8092f320c341a6b3a1b428fdd4473859d5db8b79 (diff) | |
download | vcxsrv-5593a3d2f370e3e12a043110bf2e395c938980d6.tar.gz vcxsrv-5593a3d2f370e3e12a043110bf2e395c938980d6.tar.bz2 vcxsrv-5593a3d2f370e3e12a043110bf2e395c938980d6.zip |
mesa xkeyboard-config git update 3 Oct 2003
xkeyboard-config commit 7c7f937a2203bdcdc3b2e7cbe55ddfc34cffe3ab
mesa commit d1335926196c216f1abe73f37cfcb61cf7f2bd28
Diffstat (limited to 'mesalib/src/glsl/ir_set_program_inouts.cpp')
-rw-r--r-- | mesalib/src/glsl/ir_set_program_inouts.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mesalib/src/glsl/ir_set_program_inouts.cpp b/mesalib/src/glsl/ir_set_program_inouts.cpp index 1267d6d71..ab23538c3 100644 --- a/mesalib/src/glsl/ir_set_program_inouts.cpp +++ b/mesalib/src/glsl/ir_set_program_inouts.cpp @@ -59,6 +59,7 @@ public: virtual ir_visitor_status visit_enter(ir_function_signature *); virtual ir_visitor_status visit_enter(ir_expression *); virtual ir_visitor_status visit_enter(ir_discard *); + virtual ir_visitor_status visit_enter(ir_texture *); virtual ir_visitor_status visit(ir_dereference_variable *); private: @@ -319,6 +320,14 @@ ir_set_program_inouts_visitor::visit_enter(ir_discard *) return visit_continue; } +ir_visitor_status +ir_set_program_inouts_visitor::visit_enter(ir_texture *ir) +{ + if (ir->op == ir_tg4) + prog->UsesGather = true; + return visit_continue; +} + void do_set_program_inouts(exec_list *instructions, struct gl_program *prog, GLenum shader_type) |