summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state_derived.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-02-23 04:36:41 -0800
committerCorbin Simpson <[email protected]>2009-02-23 04:37:58 -0800
commitb003b2f6dd4ddba45910560ab6d495fb01b5301b (patch)
tree72f04fe4c21bca01882cd77dd701d9fac77ebdc3 /src/gallium/drivers/r300/r300_state_derived.c
parentf72e77791116eda427438f9d9e895de71123c334 (diff)
r300-gallium: Fix a handful of compile warnings.
Some harmless, some very dangerous.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_derived.c')
-rw-r--r--src/gallium/drivers/r300/r300_state_derived.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index 2d611b951d1..a51904096f2 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -40,7 +40,13 @@ static uint32_t translate_vertex_data_type(int type) {
case EMIT_4F:
return R300_DATA_TYPE_FLOAT_4;
break;
+ default:
+ debug_printf("r300: Implementation error: "
+ "Bad vertex data type!\n");
+ break;
}
+
+ return 0;
}
/* Update the vertex_info struct in our r300_context.
@@ -98,7 +104,7 @@ static void r300_update_vertex_layout(struct r300_context* r300)
vinfo.hwfmt[0] = 0x5555; /* XXX this is classic Mesa bonghits */
if (!pos) {
- debug_printf("r300: Forcing vertex position attribute emit...");
+ debug_printf("r300: Forcing vertex position attribute emit...\n");
}
draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_POS,