i965g: Add fallthrough comments in switch statement.
Silences warnings about missing break statements in static analysis.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user