Lines Matching defs:state
139 * - constants and state variables with variable indexing are first
141 * - other state variables are last and sorted
146 _mesa_layout_parameters(struct asm_parser_state *state)
152 _mesa_new_parameter_list_sized(state->prog->Parameters->NumParameters);
157 for (inst = state->inst_head; inst != NULL; inst = inst->next) {
164 copy_indirect_accessed_array(state->prog->Parameters, layout,
191 for (inst = state->inst_head; inst != NULL; inst = inst->next) {
195 &state->prog->Parameters->Parameters[idx];
206 unsigned pvo = state->prog->Parameters->Parameters[idx].ValueOffset;
208 state->prog->Parameters->ParameterValues + pvo;
221 /* PASS 3: Add sorted state variables. NOTE: This pass does **not** modify
228 for (inst = state->inst_head; inst != NULL; inst = inst->next) {
233 p = &state->prog->Parameters->Parameters[idx];
245 /* Sort if we have added at least 2 state vars. */
247 /* All state vars should be vec4s. */
266 for (inst = state->inst_head; inst != NULL; inst = inst->next) {
270 &state->prog->Parameters->Parameters[idx];
288 assert(layout->NumParameters <= state->prog->Parameters->NumParameters);
291 layout->StateFlags = state->prog->Parameters->StateFlags;
292 _mesa_free_parameter_list(state->prog->Parameters);
293 state->prog->Parameters = layout;