/external/mesa3d/src/glsl/tests/ |
H A D | uniform_initializer_utils.h | 38 ir_constant *&val); 43 ir_constant *&val); 47 ir_constant *val, unsigned red_zone_size);
|
H A D | uniform_initializer_utils.cpp | 75 ir_constant *&val, unsigned data_index_base) 106 val = new(mem_ctx) ir_constant(type, &data); 134 ir_constant *&val) 148 ir_constant *&val) 164 ir_constant *element; 170 val = new(mem_ctx) ir_constant(array_type, &values_for_array); 186 ir_constant *val, unsigned red_zone_size)
|
H A D | copy_constant_to_storage_tests.cpp | 33 const ir_constant *val, 69 ir_constant *val; 88 ir_constant *val; 107 ir_constant *val; 126 ir_constant *val; 150 ir_constant *val;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_shader.h | 33 uint32_t brw_texture_offset(ir_constant *offset);
|
H A D | brw_lower_texture_gradients.cpp | 103 txs->lod_info.lod = new(mem_ctx) ir_constant(0); 109 base_ir->insert_before(assign(size, new(mem_ctx) ir_constant(1.0f), WRITEMASK_Z));
|
/external/mesa3d/src/glsl/ |
H A D | lower_noise.cpp | 54 *rvalue = ir_constant::zero(ralloc_parent(expr), expr->type);
|
H A D | ir.cpp | 526 ir_constant::ir_constant() function in class:ir_constant 531 ir_constant::ir_constant(const struct glsl_type *type, function in class:ir_constant 542 ir_constant::ir_constant(float f) function in class:ir_constant 552 ir_constant::ir_constant(unsigned int u) function in class:ir_constant 562 ir_constant::ir_constant(in function in class:ir_constant 572 ir_constant::ir_constant(bool b) function in class:ir_constant 582 ir_constant::ir_constant(const ir_constant *c, unsigned i) function in class:ir_constant 596 ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list) function in class:ir_constant [all...] |
H A D | lower_vec_index_to_swizzle.cpp | 39 * Visitor class for replacing expressions with ir_constant values. 65 ir_constant *ir_constant; local 74 ir_constant = deref->array_index->constant_expression_value(); 75 if (!ir_constant) 95 const int i = MIN2(MAX2(ir_constant->value.i[0], 0),
|
H A D | lower_ubo_reference.cpp | 88 ir_rvalue *offset = new(mem_ctx) ir_constant(0u); 119 ir_constant *const_index = deref_array->array_index->as_constant(); 125 new(mem_ctx) ir_constant(array_stride))); 191 new(mem_ctx) ir_constant(this->uniform_block), 235 ir_constant *element = new(mem_ctx) ir_constant(i); 247 ir_constant *col = new(mem_ctx) ir_constant(i); 265 new(mem_ctx) ir_constant(deref_offset)); 281 ir_rvalue *chan = new(mem_ctx) ir_constant((in [all...] |
H A D | ir.h | 131 virtual class ir_constant * as_constant() { return NULL; } 159 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); 200 * \c ir_constant class over-rides this function to return \c true \b only 204 * \sa ir_constant::has_value, ir_rvalue::is_one, ir_rvalue::is_negative_one, 205 * ir_constant::is_basis 213 * \c ir_constant class over-rides this function to return \c true \b only 217 * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_negative_one, 218 * ir_constant::is_basis 226 * \c ir_constant class over-rides this function to return \c true \b only 230 * \sa ir_constant 1687 class ir_constant : public ir_rvalue { class in inherits:ir_rvalue [all...] |
H A D | opt_constant_folding.cpp | 38 * Visitor class for replacing expressions with ir_constant values. 82 ir_constant *constant = (*rvalue)->constant_expression_value(); 101 ir_constant *const_val = ir->condition->as_constant(); 142 ir_constant *const_val = ir->constant_expression_value();
|
H A D | opt_algebraic.cpp | 40 * Visitor class for replacing expressions with ir_constant values. 59 ir_constant *constant, 76 is_vec_zero(ir_constant *ir) 82 is_vec_one(ir_constant *ir) 88 is_vec_basis(ir_constant *ir) 128 ir_constant *constant, 141 ir_constant *ir2_const[2]; 189 ir_constant *op_const[2] = {NULL, NULL}; 288 return ir_constant::zero(ir, ir->type); 321 return ir_constant [all...] |
H A D | ir_visitor.h | 58 virtual void visit(class ir_constant *) = 0; 81 virtual void visit(class ir_constant *) {}
|
H A D | link_uniform_initializers.cpp | 51 const ir_constant *val, 83 ir_constant *val) 86 ir_constant *field_constant; 88 field_constant = (ir_constant *)val->components.get_head(); 96 field_constant = (ir_constant *)field_constant->next;
|
H A D | lower_clip_distance.cpp | 139 ir_constant *old_index_constant = old_index->constant_expression_value(); 146 array_index = new(ctx) ir_constant(const_val / 4); 147 swizzle_index = new(ctx) ir_constant(const_val % 4); 163 new(ctx) ir_constant(2)); 170 new(ctx) ir_constant(3)); 236 ir->lhs->clone(ctx, NULL), new(ctx) ir_constant(i)); 239 ir->rhs->clone(ctx, NULL), new(ctx) ir_constant(i));
|
H A D | ir_print_visitor.h | 68 virtual void visit(ir_constant *);
|
H A D | lower_vector.cpp | 72 const ir_constant *const c = op->as_constant(); 162 const ir_constant *const c = expr->operands[i]->as_constant(); 184 ir_constant *const c = 185 new(mem_ctx) ir_constant(glsl_type::get_instance(expr->type->base_type,
|
H A D | ir_constant_expression.cpp | 63 dot(ir_constant *op0, ir_constant *op1) 97 ir_constant * 104 ir_constant * 110 ir_constant *op[Elements(this->operands)] = { NULL, }; 148 return new(ctx) ir_constant(op[0]->has_value(op[1])); 150 return new(ctx) ir_constant(!op[0]->has_value(op[1])); 938 return new(ctx) ir_constant(this->type, &data); 942 ir_constant * 950 ir_constant * [all...] |
H A D | lower_discard.cpp | 154 condition = new(mem_ctx) ir_constant(true); 180 new(mem_ctx) ir_constant(false), NULL);
|
H A D | lower_discard_flow.cpp | 89 ir_rvalue *rhs = new(mem_ctx) ir_constant(true); 111 ir_rvalue *rhs = new(mem_ctx) ir_constant(false);
|
H A D | ir_clone.cpp | 344 ir_constant * 345 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const 354 return new(mem_ctx) ir_constant(this->type, &this->value); 357 ir_constant *c = new(mem_ctx) ir_constant; 363 ir_constant *const orig = (ir_constant *) node; 372 ir_constant *c = new(mem_ctx) ir_constant; 375 c->array_elements = ralloc_array(c, ir_constant *, thi [all...] |
H A D | ast_function.cpp | 48 ir_constant *const constant = result->constant_expression_value(); 99 * ir_constant actual parameters. 276 * instructions; just generate an ir_constant. 281 ir_constant *value = sig->constant_expression_value(actual_parameters, NULL); 509 ir_constant *const constant = result->constant_expression_value(); 525 ir_constant *constant = src->as_constant(); 527 return new(ctx) ir_constant(constant, component); 541 ir_constant *const col_index = new(ctx) ir_constant(c); 652 return new(ctx) ir_constant(constructor_typ [all...] |
H A D | loop_controls.cpp | 99 ir_constant *iter = div->constant_expression_value(); 127 ? new(mem_ctx) ir_constant(iter_value + bias[i]) 128 : new(mem_ctx) ir_constant(float(iter_value + bias[i])); 140 ir_constant *const cmp_result = cmp->constant_expression_value(); 217 ir_constant *limit = cond->operands[1]->as_constant();
|
H A D | opt_if_simplification.cpp | 86 ir_constant *condition_constant = ir->condition->constant_expression_value();
|
/external/mesa3d/src/mesa/main/ |
H A D | ff_fragment_shader.cpp | 550 ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib); 594 new(p->mem_ctx) ir_constant(unit)); 602 return new(p->mem_ctx) ir_constant(0.0f); 629 return sub(new(p->mem_ctx) ir_constant(1.0f), src); 637 return sub(new(p->mem_ctx) ir_constant(1.0f), scalar); 641 return new(p->mem_ctx) ir_constant(0.0f); 643 return new(p->mem_ctx) ir_constant(1.0f); 728 return add(add(src[0], src[1]), new(p->mem_ctx) ir_constant(-0.5f)); 733 tmp1 = mul(src[1], sub(new(p->mem_ctx) ir_constant(1.0f), 744 tmp0 = mul(src[0], new(p->mem_ctx) ir_constant(2. [all...] |