Mesa (master): i965: Fix compile warning about missing opcodes.

Eric Anholt anholt at kemper.freedesktop.org
Sun Dec 5 00:29:23 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Sat Dec  4 16:27:57 2010 -0800

i965: Fix compile warning about missing opcodes.

---

 .../dri/i965/brw_fs_channel_expressions.cpp        |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
index 3b7b03a..20bfa4c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
@@ -205,6 +205,8 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
    case ir_unop_round_even:
    case ir_unop_sin:
    case ir_unop_cos:
+   case ir_unop_sin_reduced:
+   case ir_unop_cos_reduced:
    case ir_unop_dFdx:
    case ir_unop_dFdy:
       for (i = 0; i < vector_elements; i++) {
@@ -328,6 +330,9 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
    case ir_unop_noise:
       assert(!"noise should have been broken down to function call");
       break;
+   case ir_quadop_vector:
+      assert(!"should have been lowered");
+      break;
    }
 
    ir->remove();




More information about the mesa-commit mailing list