Mesa (master): mesa: add switch case for ir_txf_ms to silence warning

Brian Paul brianp at kemper.freedesktop.org
Sat Mar 2 12:55:11 UTC 2013


Module: Mesa
Branch: master
Commit: 2ea0e30bed87174bc376c391e2c4a23298c36b5a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ea0e30bed87174bc376c391e2c4a23298c36b5a

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Mar  1 17:36:24 2013 -0700

mesa: add switch case for ir_txf_ms to silence warning

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/program/ir_to_mesa.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 5432323..486cf46 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2045,6 +2045,9 @@ ir_to_mesa_visitor::visit(ir_texture *ir)
       ir->lod_info.grad.dPdy->accept(this);
       dy = this->result;
       break;
+   case ir_txf_ms:
+      assert(!"Unexpected ir_txf_ms opcode");
+      break;
    }
 
    const glsl_type *sampler_type = ir->sampler->type;




More information about the mesa-commit mailing list