diff options
author | Vinson Lee <[email protected]> | 2010-02-22 23:32:43 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-22 23:32:43 -0800 |
commit | a0fe36a39b92780efd2374b66f16b39e541f1172 (patch) | |
tree | 0555e93c3afa321f1e9ef90782cc346b6e885900 /src | |
parent | 6da07e45b3e5cb37b63afafb650569d3d275e608 (diff) |
i965g: Add fallthrough comments in switch statement.
Silences warnings about missing break statements in static analysis.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i965/brw_draw_upload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965/brw_draw_upload.c b/src/gallium/drivers/i965/brw_draw_upload.c index d59261557b5..9f136eec71c 100644 --- a/src/gallium/drivers/i965/brw_draw_upload.c +++ b/src/gallium/drivers/i965/brw_draw_upload.c @@ -359,9 +359,9 @@ static int brw_emit_vertex_elements(struct brw_context *brw) uint32_t comp3 = BRW_VE1_COMPONENT_STORE_SRC; switch (input->nr_components) { - case 0: comp0 = BRW_VE1_COMPONENT_STORE_0; - case 1: comp1 = BRW_VE1_COMPONENT_STORE_0; - case 2: comp2 = BRW_VE1_COMPONENT_STORE_0; + case 0: comp0 = BRW_VE1_COMPONENT_STORE_0; /* fallthrough */ + case 1: comp1 = BRW_VE1_COMPONENT_STORE_0; /* fallthrough */ + case 2: comp2 = BRW_VE1_COMPONENT_STORE_0; /* fallthrough */ case 3: comp3 = BRW_VE1_COMPONENT_STORE_1_FLT; break; } |