glsl: add texture gather changes

V2 [Chris Forbes]:
   - Add new pattern, fixup parameter reading.

V3: Rebase onto new builtins machinery

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Maxence Le Dore
2012-12-24 00:57:37 +01:00
committed by Chris Forbes
parent d3575622b7
commit 18002d9eda
14 changed files with 60 additions and 4 deletions

View File

@@ -266,7 +266,7 @@ void ir_print_visitor::visit(ir_texture *ir)
printf(" ");
}
if (ir->op != ir_txf && ir->op != ir_txf_ms && ir->op != ir_txs) {
if (ir->op != ir_txf && ir->op != ir_txf_ms && ir->op != ir_txs && ir->op != ir_tg4) {
if (ir->projector)
ir->projector->accept(this);
else
@@ -285,6 +285,7 @@ void ir_print_visitor::visit(ir_texture *ir)
{
case ir_tex:
case ir_lod:
case ir_tg4:
break;
case ir_txb:
ir->lod_info.bias->accept(this);