Lines Matching defs:deref

110    /* most recent deref instruction created */
111 nir_deref_instr *deref;
297 this->deref = NULL;
313 return this->deref;
749 /* The return value is a variable deref (basically an out parameter) */
920 /* Accumulate any qualifiers along the deref chain to get the actual
925 deref_get_qualifier(nir_deref_instr *deref)
928 nir_deref_path_init(&path, deref, NULL);
1252 ir_dereference *deref = rvalue->as_dereference();
1254 if (!deref) {
1258 deref = swizzle->val->as_dereference();
1259 assert(deref);
1261 nir_deref_instr *nir_deref = evaluate_deref(deref);
1356 nir_deref_instr *deref = evaluate_deref(image);
1357 const glsl_type *type = deref->type;
1359 nir_intrinsic_set_access(instr, deref_get_qualifier(deref));
1361 instr->src[0] = nir_src_for_ssa(&deref->dest.ssa);
1750 nir_deref_instr *lhs_deref = this->deref;
1844 enum gl_access_qualifier access = deref_get_qualifier(this->deref);
1845 this->result = nir_load_deref_with_access(&b, this->deref, access);
1847 if (nir_deref_mode_is(this->deref, nir_var_shader_out))
1876 ir_dereference *deref = ir->operands[0]->as_dereference();
1878 if (!deref) {
1884 deref = swizzle->val->as_dereference();
1885 assert(deref);
1888 deref->accept(this);
1891 if (nir_deref_mode_is(this->deref, nir_var_shader_in)) {
1912 assert(nir_deref_mode_is(this->deref, nir_var_shader_temp));
1917 intrin->num_components = deref->type->vector_elements;
1918 intrin->src[0] = nir_src_for_ssa(&this->deref->dest.ssa);
1924 unsigned bit_size = glsl_get_bit_size(deref->type);
1925 add_instr(&intrin->instr, deref->type->vector_elements, bit_size);
1944 ir_dereference *deref = ir->operands[0]->as_dereference();
1945 intrin->src[0] = nir_src_for_ssa(&evaluate_deref(deref)->dest.ssa);
2480 /* Add one for the texture deref */
2633 this->deref = nir_build_deref_var(&b, var);
2649 this->deref = nir_build_deref_cast(&b, nir_load_param(&b, i),
2661 this->deref = nir_build_deref_var(&b, var);
2675 if (this->deref->deref_type == nir_deref_type_var &&
2676 _mesa_set_search(this->sparse_variable_set, this->deref->var)) {
2677 nir_ssa_def *load = nir_load_deref(&b, this->deref);
2692 /* still need to create a deref for return */
2695 this->deref = nir_build_deref_var(&b, tmp);
2696 nir_store_deref(&b, this->deref, ssa, ~0);
2698 this->deref = nir_build_deref_struct(&b, this->deref, field_index);
2708 this->deref = nir_build_deref_array(&b, this->deref, index);