summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-11-17 15:06:22 +0800
committerEric Anholt <eric@anholt.net>2010-11-18 09:18:47 +0800
commitd512cbf58f9039575dbbb5ab65dbbf7b742a0854 (patch)
tree9f4682851c6ccf1eafba9d6bd7aebc740ce805cc
parente89e8a4347dacceda0b131b55d16206e25eb984f (diff)
i965: Shut up spurious gcc warning about GLSL_TYPE enums.
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 9c03b61c82..4ef71784d4 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -299,6 +299,10 @@ fs_visitor::setup_uniform_values(int loc, const glsl_type *type)
case GLSL_TYPE_BOOL:
c->prog_data.param_convert[param] = PARAM_CONVERT_F2B;
break;
+ default:
+ assert(!"not reached");
+ c->prog_data.param_convert[param] = PARAM_NO_CONVERT;
+ break;
}
c->prog_data.param[param] = &vec_values[i];