Home | History | Annotate | Download | only in glsl

Lines Matching refs:switch_state

3432 		 state->switch_state.switch_nesting_ast == NULL) {
3450 if (state->switch_state.is_switch_innermost &&
3454 ir_variable *const is_break_var = state->switch_state.is_break_var;
3553 struct glsl_switch_state saved = state->switch_state;
3555 state->switch_state.is_switch_innermost = true;
3556 state->switch_state.switch_nesting_ast = this;
3557 state->switch_state.labels_ht = hash_table_ctor(0, hash_table_pointer_hash,
3559 state->switch_state.previous_default = NULL;
3564 state->switch_state.is_fallthru_var =
3568 instructions->push_tail(state->switch_state.is_fallthru_var);
3571 new(ctx) ir_dereference_variable(state->switch_state.is_fallthru_var);
3578 state->switch_state.is_break_var = new(ctx) ir_variable(glsl_type::bool_type,
3581 instructions->push_tail(state->switch_state.is_break_var);
3584 new(ctx) ir_dereference_variable(state->switch_state.is_break_var);
3596 hash_table_dtor(state->switch_state.labels_ht);
3598 state->switch_state = saved;
3616 state->switch_state.test_var = new(ctx) ir_variable(test_val->type,
3620 new(ctx) ir_dereference_variable(state->switch_state.test_var);
3622 instructions->push_tail(state->switch_state.test_var);
3658 new(state) ir_dereference_variable(state->switch_state.is_fallthru_var);
3660 new(state) ir_dereference_variable(state->switch_state.is_break_var);
3669 new(state) ir_dereference_variable(state->switch_state.is_fallthru_var);
3700 new(ctx) ir_dereference_variable(state->switch_state.is_fallthru_var);
3723 hash_table_find(state->switch_state.labels_ht,
3735 hash_table_insert(state->switch_state.labels_ht,
3742 new(ctx) ir_dereference_variable(state->switch_state.test_var);
3755 if (state->switch_state.previous_default) {
3760 loc = state->switch_state.previous_default->get_location();
3764 state->switch_state.previous_default = this;
3837 bool saved_is_switch_innermost = state->switch_state.is_switch_innermost;
3838 state->switch_state.is_switch_innermost = false;
3857 state->switch_state.is_switch_innermost = saved_is_switch_innermost;