Lines Matching defs:options
80 const nir_opt_preamble_options *options;
84 get_instr_cost(nir_instr *instr, const nir_opt_preamble_options *options)
93 return options->instr_cost_cb(instr, options->cb_data);
159 return ctx->options->drawid_uniform;
163 return ctx->options->subgroup_size_uniform;
284 avoid_instr(nir_instr *instr, const nir_opt_preamble_options *options)
289 return options->avoid_instr_cb(instr, options->cb_data);
338 nir_opt_preamble(nir_shader *shader, const nir_opt_preamble_options *options,
342 .options = options,
385 state->value = get_instr_cost(instr, options);
386 bool is_candidate = !avoid_instr(instr, options);
464 options->rewrite_cost_cb(def, options->cb_data);
467 options->def_size(def, &state->size, &state->align);
493 if (total_size > options->preamble_storage_size) {
502 if (offset + state->size > options->preamble_storage_size)