Home | History | Annotate | Download | only in i965

Lines Matching refs:state

40 read_thread_local_id(struct lower_intrinsics_state *state)
42 nir_builder *b = &state->builder;
43 nir_shader *nir = state->nir;
53 assert(state->cs_prog_data->thread_local_id_index >= 0);
54 state->cs_thread_id_used = true;
55 const int id_index = state->cs_prog_data->thread_local_id_index;
69 lower_cs_intrinsics_convert_block(struct lower_intrinsics_state *state,
73 nir_builder *b = &state->builder;
74 nir_shader *nir = state->nir;
93 nir_ssa_def *thread_local_id = read_thread_local_id(state);
139 state->progress = true;
146 lower_cs_intrinsics_convert_impl(struct lower_intrinsics_state *state)
148 nir_builder_init(&state->builder, state->impl);
150 nir_foreach_block(block, state->impl) {
151 lower_cs_intrinsics_convert_block(state, block);
154 nir_metadata_preserve(state->impl,
166 struct lower_intrinsics_state state;
167 memset(&state, 0, sizeof(state));
168 state.nir = nir;
169 state.prog_data = prog_data;
172 state.progress = false;
175 state.impl = function->impl;
176 lower_cs_intrinsics_convert_impl(&state);
179 progress |= state.progress;
180 } while (state.progress);
182 if (nir->stage == MESA_SHADER_COMPUTE && !state.cs_thread_id_used)
183 state.cs_prog_data->thread_local_id_index = -1;