Quiet warnings about ir_shader not being handled in places it's not needed.
authorEric Anholt <eric@anholt.net>
Fri, 30 Apr 2010 00:57:28 +0000 (17:57 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 3 May 2010 18:40:26 +0000 (11:40 -0700)
glsl_parser_extras.cpp
ir_variable.cpp

index 4255d2d66e77c928542f924733a4fda16a2794f9..4183d1385660e134cee875e567d00fb3240b2aa6 100644 (file)
@@ -48,6 +48,7 @@ _mesa_glsl_shader_target_name(enum _mesa_glsl_parser_targets target)
    case vertex_shader:   return "vertex";
    case fragment_shader: return "fragment";
    case geometry_shader: return "geometry";
+   case ir_shader:       break;
    }
 
    assert(!"Should not get here.");
index b5e7d6e9339a819bd12157171bee9ca65c6dbb96..2c2b57a71146eb741e1b6f338ff693f26192b7af 100644 (file)
@@ -21,6 +21,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#include <stdio.h>
 #include "glsl_parser_extras.h"
 #include "glsl_symbol_table.h"
 #include "ir.h"
@@ -315,5 +316,9 @@ _mesa_glsl_initialize_variables(exec_list *instructions,
    case fragment_shader:
       initialize_fs_variables(instructions, state);
       break;
+   case ir_shader:
+      fprintf(stderr, "ir reader has no builtin variables");
+      exit(1);
+      break;
    }
 }