/external/mesa3d/src/compiler/glsl/ |
D | lower_instructions.cpp | 275 ir_constant *log2_e = new(ir) ir_constant(float(M_LOG2E)); in exp_to_exp2() 306 ir->operands[1] = new(ir) ir_constant(float(1.0 / M_LOG2E)); in log_to_log2() 455 new(ir) ir_constant(23, vec_elem)))); in ldexp_to_arith() 471 new(ir) ir_constant(255, vec_elem)))); in ldexp_to_arith() 476 new(ir) ir_constant(0x807fffffu, vec_elem)))); in ldexp_to_arith() 490 ir_constant::zero(ir, ivec)))); in ldexp_to_arith() 493 ir_constant::zero(ir, ivec), in ldexp_to_arith() 500 new(ir) ir_constant(255, vec_elem))))); in ldexp_to_arith() 504 new(ir) ir_constant(0x80000000u, vec_elem)), in ldexp_to_arith() 515 new(ir) ir_constant(23u, vec_elem), in ldexp_to_arith() [all …]
|
D | ir_constant_expression.cpp | 45 dot_f(ir_constant *op0, ir_constant *op1) in dot_f() 57 dot_d(ir_constant *op0, ir_constant *op1) in dot_d() 422 ir_constant *&store, int &offset) in constant_referenced() 435 ir_constant *const index_c = in constant_referenced() 445 ir_constant *substore; in constant_referenced() 478 ir_constant *substore; in constant_referenced() 498 store = (ir_constant *) entry->data; in constant_referenced() 511 ir_constant * 630 ir_constant * 639 ir_constant *op[ARRAY_SIZE(this->operands)] = { NULL, }; in constant_expression_value() [all …]
|
D | opt_minmax.cpp | 57 minmax_range(ir_constant *low = NULL, ir_constant *high = NULL) in minmax_range() 68 ir_constant *low; 69 ir_constant *high; 93 compare_components(ir_constant *a, ir_constant *b) in compare_components() 167 static ir_constant * 168 combine_constant(bool ismin, ir_constant *a, ir_constant *b) in combine_constant() 171 ir_constant *c = a->clone(mem_ctx, NULL); in combine_constant() 201 static ir_constant * 202 smaller_constant(ir_constant *a, ir_constant *b) in smaller_constant() 216 static ir_constant * [all …]
|
D | ir.cpp | 625 ir_constant::ir_constant() in ir_constant() function in ir_constant 631 ir_constant::ir_constant(const struct glsl_type *type, in ir_constant() function in ir_constant 644 ir_constant::ir_constant(float f, unsigned vector_elements) in ir_constant() function in ir_constant 657 ir_constant::ir_constant(double d, unsigned vector_elements) in ir_constant() function in ir_constant 670 ir_constant::ir_constant(unsigned int u, unsigned vector_elements) in ir_constant() function in ir_constant 683 ir_constant::ir_constant(int integer, unsigned vector_elements) in ir_constant() function in ir_constant 696 ir_constant::ir_constant(uint64_t u64, unsigned vector_elements) in ir_constant() function in ir_constant 709 ir_constant::ir_constant(int64_t int64, unsigned vector_elements) in ir_constant() function in ir_constant 722 ir_constant::ir_constant(bool b, unsigned vector_elements) in ir_constant() function in ir_constant 735 ir_constant::ir_constant(const ir_constant *c, unsigned i) in ir_constant() function in ir_constant [all …]
|
D | ir.h | 232 virtual ir_constant *constant_expression_value(void *mem_ctx, 974 ir_constant *constant_value; 984 ir_constant *constant_initializer; 1174 ir_constant *constant_expression_value(void *mem_ctx, 1282 ir_constant **result); 1436 virtual ir_constant *constant_expression_value(void *mem_ctx, 1543 virtual ir_constant *constant_expression_value(void *mem_ctx, 1625 virtual ir_constant *constant_expression_value(void *mem_ctx, 1848 virtual ir_constant *constant_expression_value(void *mem_ctx, 1946 virtual ir_constant *constant_expression_value(void *mem_ctx, [all …]
|
D | opt_algebraic.cpp | 67 ir_constant *constant, 103 is_vec_zero(ir_constant *ir) in is_vec_zero() 109 is_vec_one(ir_constant *ir) in is_vec_one() 115 is_vec_two(ir_constant *ir) in is_vec_two() 121 is_vec_four(ir_constant *ir) in is_vec_four() 127 is_vec_negative_one(ir_constant *ir) in is_vec_negative_one() 133 is_valid_vec_const(ir_constant *ir) in is_valid_vec_const() 145 is_less_than_one(ir_constant *ir) in is_less_than_one() 162 is_greater_than_zero(ir_constant *ir) in is_greater_than_zero() 221 return dot(x->val, new(mem_ctx) ir_constant(1.0f, 4)); in try_replace_with_dot() [all …]
|
D | lower_buffer_access.cpp | 102 ir_constant *element = new(mem_ctx) ir_constant(i); in emit_access() 116 ir_constant *col = new(mem_ctx) ir_constant(i); in emit_access() 139 add(base_offset, new(mem_ctx) ir_constant(deref_offset)); in emit_access() 158 new(mem_ctx) ir_constant(deref_offset + i * matrix_stride)); in emit_access() 282 *offset = new(mem_ctx) ir_constant(0u); in setup_buffer_access() 356 ir_constant *const_index = in setup_buffer_access() 363 new(mem_ctx) ir_constant(array_stride))); in setup_buffer_access()
|
D | ir_builder.h | 95 ir_constant* 98 return new(mem_ctx) ir_constant(f); in constant() 101 ir_constant* 104 return new(mem_ctx) ir_constant(i); in constant() 107 ir_constant* 110 return new(mem_ctx) ir_constant(u); in constant() 113 ir_constant* 116 return new(mem_ctx) ir_constant(b); in constant()
|
D | lower_ubo_reference.cpp | 206 ir_constant *const_index = a->array_index->as_constant(); in interface_field_name() 215 ir_constant *base_size = new(mem_ctx) in interface_field_name() 216 ir_constant(a->array->type->fields.array->arrays_of_arrays_size()); in interface_field_name() 257 ir_constant *max_index = new(mem_ctx) ir_constant(array_size - 1); in clamp_to_array_bounds() 260 ir_constant *zero = new(mem_ctx) ir_constant(0); in clamp_to_array_bounds() 305 ir_constant *index = new(mem_ctx) ir_constant(i); in setup_for_load_or_store() 471 call_params.push_tail(new(mem_ctx) ir_constant(write_mask)); in ssbo_store() 472 call_params.push_tail(new(mem_ctx) ir_constant(ssbo_access_params())); in ssbo_store() 513 call_params.push_tail(new(mem_ctx) ir_constant(ssbo_access_params())); in ssbo_load() 772 new(mem_ctx) ir_constant(const_offset)); in process_ssbo_unsized_array_length() [all …]
|
D | ast_function.cpp | 52 ir_constant *const constant = in process_parameters() 533 ir_constant *value = sig->constant_expression_value(ctx, in generate_call() 960 ir_constant *const constant = result->constant_expression_value(ctx); in convert_component() 1033 ir_constant *constant = src->as_constant(); in dereference_component() 1035 return new(ctx) ir_constant(constant, component); in dereference_component() 1049 ir_constant *const col_index = new(ctx) ir_constant(c); in dereference_component() 1131 return new(ctx) ir_constant(constructor_type, &actual_parameters); in process_vec_mat_constructor() 1144 new(ctx) ir_dereference_array(var, new(ctx) ir_constant(i)); in process_vec_mat_constructor() 1270 return new(ctx) ir_constant(constructor_type, &actual_parameters); in process_array_constructor() 1279 new(ctx) ir_constant(i)); in process_array_constructor() [all …]
|
D | opt_constant_folding.cpp | 103 ir_constant *constant = in ir_constant_fold() 126 ir_constant *const_val = ir->condition->as_constant(); in visit_enter() 152 ir_constant *const_val = ir->condition->as_constant(); in visit_enter() 193 ir_constant *const_val = ir->constant_expression_value(ralloc_parent(ir)); in visit_enter()
|
D | lower_distance.cpp | 238 ir_constant *old_index_constant = in create_indices() 246 array_index = new(ctx) ir_constant(const_val / 4); in create_indices() 247 swizzle_index = new(ctx) ir_constant(const_val % 4); in create_indices() 265 new(ctx) ir_constant(offset)), in create_indices() 266 new(ctx) ir_constant(2)); in create_indices() 275 new(ctx) ir_constant(offset)), in create_indices() 276 new(ctx) ir_constant(3)); in create_indices() 459 ir->lhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave() 461 ir->rhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave()
|
D | lower_vector.cpp | 76 const ir_constant *const c = op->as_constant(); in is_extended_swizzle() 166 const ir_constant *const c = expr->operands[i]->as_constant(); in handle_rvalue() 188 ir_constant *const c = in handle_rvalue() 189 new(mem_ctx) ir_constant(glsl_type::get_instance(expr->type->base_type, in handle_rvalue()
|
D | lower_vector_insert.cpp | 68 ir_constant *const idx = in handle_rvalue() 116 ir_constant *const cmp_index = in handle_rvalue() 117 ir_constant::zero(factory.mem_ctx, expr->operands[2]->type); in handle_rvalue()
|
D | lower_variable_index_to_cond_assign.cpp | 98 ir_constant *const test_indices = in compare_index_block() 99 new(body.mem_ctx) ir_constant(broadcast_index->type, &test_indices_data); in compare_index_block() 202 ir_constant *const index = body.constant(i); in generate() 285 ir_constant *const middle_c = (index->type->base_type == GLSL_TYPE_UINT) in bisect() 286 ? new(body.mem_ctx) ir_constant((unsigned)middle) in bisect() 287 : new(body.mem_ctx) ir_constant((int)middle); in bisect()
|
D | ir_clone.cpp | 331 ir_constant * 332 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const in clone() 349 return new(mem_ctx) ir_constant(this->type, &this->value); in clone() 353 ir_constant *c = new(mem_ctx) ir_constant; in clone() 356 c->const_elements = ralloc_array(c, ir_constant *, this->type->length); in clone()
|
D | ir_builder_print_visitor.cpp | 42 virtual ir_visitor_status visit(class ir_constant *); 67 void print_without_declaration(const ir_constant *ir); 104 const ir_constant *const c = (ir_constant *) ir; in is_simple_operand() 188 print_without_declaration((ir_constant *) ir); in print_without_declaration() 312 ir_builder_print_visitor::print_without_declaration(const ir_constant *ir) in print_without_declaration() 344 ir_builder_print_visitor::visit(ir_constant *ir) in visit()
|
D | loop_analysis.cpp | 104 ir_constant *iter = div->constant_expression_value(mem_ctx); in calculate_iterations() 136 iter = new(mem_ctx) ir_constant(iter_value + bias[i]); in calculate_iterations() 139 iter = new(mem_ctx) ir_constant(unsigned(iter_value + bias[i])); in calculate_iterations() 142 iter = new(mem_ctx) ir_constant(float(iter_value + bias[i])); in calculate_iterations() 145 iter = new(mem_ctx) ir_constant(double(iter_value + bias[i])); in calculate_iterations() 164 ir_constant *const cmp_result = cmp->constant_expression_value(mem_ctx); in calculate_iterations() 593 ir_constant *limit = cond->operands[1]->as_constant(); in visit_leave()
|
D | opt_constant_propagation.cpp | 53 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) in acp_entry() 72 ir_constant *constant; 157 ir_constant *constant = in constant_folding() 253 *rvalue = new(ralloc_parent(deref)) ir_constant(type, &data); in constant_propagation() 491 ir_constant *constant = ir->rhs->as_constant(); in add_constant()
|
D | lower_blend_equation_advanced.cpp | 35 #define imm1(x) new(mem_ctx) ir_constant((float) (x), 1) 36 #define imm3(x) new(mem_ctx) ir_constant((float) (x), 3) 193 return dot(c, new(mem_ctx) ir_constant(glsl_type::vec3_type, &data)); in lumv3() 271 return equal(mode, new(ralloc_parent(mode)) ir_constant(unsigned(q))); in is_mode() 438 ir_constant *index = new(mem_ctx) ir_constant(0); in deref_output() 537 blend_comps[i] = new(mem_ctx) ir_constant(i < 3 ? 0.0f : 1.0f); in lower_blend_equation_advanced()
|
D | lower_discard.cpp | 157 condition = new(mem_ctx) ir_constant(true); in replace_discard() 183 new(mem_ctx) ir_constant(false)); in visit_leave()
|
/external/mesa3d/src/compiler/glsl/tests/ |
D | uniform_initializer_utils.cpp | 75 ir_constant *&val, unsigned data_index_base) in generate_data_element() 123 val = new(mem_ctx) ir_constant(type, &data); in generate_data_element() 168 ir_constant *&val) in generate_data() 182 ir_constant *&val) in generate_array_data() 198 ir_constant *element; in generate_array_data() 204 val = new(mem_ctx) ir_constant(array_type, &values_for_array); in generate_array_data() 236 ir_constant *val, unsigned red_zone_size, in verify_data()
|
D | copy_constant_to_storage_tests.cpp | 33 const ir_constant *val, 70 ir_constant *val; in int_test() 90 ir_constant *val; in uint_test() 110 ir_constant *val; in float_test() 130 ir_constant *val; in bool_test() 155 ir_constant *val; in sampler_test()
|
D | uniform_initializer_utils.h | 39 ir_constant *&val); 44 ir_constant *&val); 48 ir_constant *val, unsigned red_zone_size,
|
/external/mesa3d/src/mesa/main/ |
D | ff_fragment_shader.cpp | 365 ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib); in get_current_attrib() 409 new(p->mem_ctx) ir_constant(unit)); in get_source() 417 return new(p->mem_ctx) ir_constant(0.0f); in get_source() 420 return new(p->mem_ctx) ir_constant(1.0f); in get_source() 447 return sub(new(p->mem_ctx) ir_constant(1.0f), src); in emit_combine_source() 455 return sub(new(p->mem_ctx) ir_constant(1.0f), scalar); in emit_combine_source() 543 return add(add(src[0], src[1]), new(p->mem_ctx) ir_constant(-0.5f)); in emit_combine() 548 tmp1 = mul(src[1], sub(new(p->mem_ctx) ir_constant(1.0f), in emit_combine() 559 tmp0 = mul(src[0], new(p->mem_ctx) ir_constant(2.0f)); in emit_combine() 560 tmp0 = add(tmp0, new(p->mem_ctx) ir_constant(-1.0f)); in emit_combine() [all …]
|