Lines Matching defs:tex
7073 ir_texture *tex = new(mem_ctx) ir_texture(ir_txs);
7074 tex->set_sampler(new(mem_ctx) ir_dereference_variable(s), return_type);
7079 tex->lod_info.lod = var_ref(lod);
7081 tex->lod_info.lod = imm(0u);
7084 body.emit(ret(tex));
7096 ir_texture *tex = new(mem_ctx) ir_texture(ir_texture_samples);
7097 tex->set_sampler(new(mem_ctx) ir_dereference_variable(s), glsl_type::int_type);
7098 body.emit(ret(tex));
7142 ir_texture *tex = new(mem_ctx) ir_texture(opcode, flags & TEX_SPARSE);
7143 tex->set_sampler(var_ref(s), return_type);
7148 tex->coordinate = var_ref(P);
7153 tex->coordinate = swizzle_for_size(P, coord_size);
7158 tex->projector = swizzle(P, coord_type->vector_elements - 1, 1);
7167 tex->shadow_comparator = var_ref(refz);
7172 tex->shadow_comparator = swizzle(P, MAX2(coord_size, SWIZZLE_Z), 1);
7179 tex->lod_info.lod = var_ref(lod);
7186 tex->lod_info.grad.dPdx = var_ref(dPdx);
7187 tex->lod_info.grad.dPdy = var_ref(dPdy);
7196 tex->offset = var_ref(offset);
7204 tex->offset = var_ref(offsets);
7210 tex->clamp = var_ref(clamp);
7224 tex->lod_info.component = var_ref(component);
7227 tex->lod_info.component = imm(0);
7237 tex->lod_info.bias = var_ref(bias);
7241 ir_variable *r = body.make_temp(tex->type, "result");
7242 body.emit(assign(r, tex));
7246 body.emit(ret(tex));
7267 ir_texture *tex = new(mem_ctx) ir_texture(opcode, sparse);
7268 tex->set_sampler(var_ref(s), return_type);
7270 tex->coordinate = var_ref(P);
7271 tex->shadow_comparator = var_ref(compare);
7276 tex->lod_info.lod = var_ref(lod);
7282 tex->clamp = var_ref(lod_clamp);
7294 tex->lod_info.bias = var_ref(bias);
7298 ir_variable *r = body.make_temp(tex->type, "result");
7299 body.emit(assign(r, tex));
7303 body.emit(ret(tex));
7323 ir_texture *tex = new(mem_ctx) ir_texture(ir_txf, sparse);
7324 tex->coordinate = var_ref(P);
7325 tex->set_sampler(var_ref(s), return_type);
7330 tex->lod_info.sample_index = var_ref(sample);
7331 tex->op = ir_txf_ms;
7335 tex->lod_info.lod = var_ref(lod);
7337 tex->lod_info.lod = imm(0u);
7344 tex->offset = var_ref(offset);
7351 ir_variable *r = body.make_temp(tex->type, "result");
7352 body.emit(assign(r, tex));
7356 body.emit(ret(tex));
7442 ir_texture *tex = new(mem_ctx) ir_texture(ir_lod);
7443 tex->coordinate = var_ref(coord);
7444 tex->set_sampler(var_ref(s), glsl_type::vec2_type);
7446 body.emit(ret(tex));
7459 ir_texture *tex = new(mem_ctx) ir_texture(ir_query_levels);
7460 tex->set_sampler(var_ref(s), return_type);
7462 body.emit(ret(tex));
7477 ir_texture *tex = new(mem_ctx) ir_texture(ir_samples_identical);
7478 tex->coordinate = var_ref(P);
7479 tex->set_sampler(var_ref(s), return_type);
7481 body.emit(ret(tex));