| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| H A D | radeon_code.c | 59 unsigned rc_constants_add(struct rc_constant_list * c, struct rc_constant * constant) argument 77 c->Constants[index] = *constant; 85 * Add a state vector to the constant list, while trying to avoid duplicates. 90 struct rc_constant constant; local in function:rc_constants_add_state 100 memset(&constant, 0, sizeof(constant)); 101 constant.Type = RC_CONSTANT_STATE; 102 constant.Size = 4; 103 constant.u.State[0] = state0; 104 constant 117 struct rc_constant constant; local in function:rc_constants_add_immediate_vec4 143 struct rc_constant constant; local in function:rc_constants_add_immediate_scalar [all...] |
| H A D | radeon_inline_literals.c | 97 struct rc_constant * constant; local in function:rc_inline_literals 117 constant = 119 if (constant->Type != RC_CONSTANT_IMMEDIATE) { 129 float_value = constant->u.Immediate[swz]; 148 /* Use RC_SWIZZLE_W for the inline constant, so
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| H A D | radeon_code.c | 59 unsigned rc_constants_add(struct rc_constant_list * c, struct rc_constant * constant) argument 77 c->Constants[index] = *constant; 85 * Add a state vector to the constant list, while trying to avoid duplicates. 90 struct rc_constant constant; local in function:rc_constants_add_state 100 memset(&constant, 0, sizeof(constant)); 101 constant.Type = RC_CONSTANT_STATE; 102 constant.Size = 4; 103 constant.u.State[0] = state0; 104 constant 117 struct rc_constant constant; local in function:rc_constants_add_immediate_vec4 143 struct rc_constant constant; local in function:rc_constants_add_immediate_scalar [all...] |
| H A D | radeon_inline_literals.c | 97 struct rc_constant * constant; local in function:rc_inline_literals 117 constant = 119 if (constant->Type != RC_CONSTANT_IMMEDIATE) { 129 float_value = constant->u.Immediate[swz]; 148 /* Use RC_SWIZZLE_W for the inline constant, so
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| H A D | lower_packing_builtins.cpp | 195 constant(T x) function in class:__anonc73dd4060110::lower_packing_builtins_visitor 197 return factory.constant(x); 218 return bitfield_insert(bit_and(swizzle_x(u), constant(0xffffu)), 220 constant(16u), 221 constant(16u)); 225 return bit_or(lshift(swizzle_y(u), constant(16u)), 226 bit_and(swizzle_x(u), constant(0xffffu))); 250 bit_and(swizzle_x(u), constant(0xffu)), 251 swizzle_y(u), constant(8u), constant( [all...] |
| H A D | opt_constant_propagation.cpp | 5 * constant of this software and associated documentation files (the "Software"), 7 * the rights to use, constant, modify, merge, publish, distribute, sublicense, 28 * usage of those constant channels with direct usage of the constants. 30 * This can lead to constant folding and algebraic optimizations in 33 * constant push buffer or as instruction immediate values) and 53 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) argument 56 assert(constant); 59 this->constant = constant; 67 this->constant 72 ir_constant *constant; member in class:__anonb352fc770110::acp_entry 139 ir_constant *constant = local in function:__anonb352fc770110::ir_constant_propagation_visitor::constant_folding 496 ir_constant *constant = ir->rhs->as_constant(); local in function:__anonb352fc770110::ir_constant_propagation_visitor::add_constant [all...] |
| H A D | builtin_int64.h | 45 body.emit(assign(r0008, rshift(swizzle_y(r0007), body.constant(int(31))), 0x02)); 48 ir_expression *const r000A = nequal(r0009, body.constant(int(0))); 82 body.emit(assign(r0010, add(r0012, body.constant(int(32))), 0x01)); 85 ir_expression *const r0014 = equal(swizzle_y(r000D), body.constant(0u)); 101 body.emit(assign(r0017, body.constant(int(31)), 0x01)); 110 ir_expression *const r001B = less(r0017, body.constant(int(1))); 126 ir_expression *const r001D = sub(body.constant(int(31)), r0017); 140 ir_expression *const r0023 = lshift(body.constant(1u), r0017); 149 body.emit(assign(r0017, add(r0017, body.constant(int(-1))), 0x01)); 166 body.emit(assign(r0011, bit_or(swizzle_y(r0011), body.constant( [all...] |
| H A D | opt_constant_folding.cpp | 26 * Replace constant-valued expressions with references to constant values. 71 * expression has a non-constant operand, no need to go looking 72 * down it to find if it's constant. This cuts the time of this 94 /* No constant folding can be performed on variable dereferences. We need 103 ir_constant *constant = local in function:ir_constant_fold 105 if (constant) { 106 *rvalue = constant; 127 /* If the condition is constant, either remove the condition or 153 /* If the condition is constant, eithe [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| H A D | lower_packing_builtins.cpp | 195 constant(T x) function in class:__anoneae932b30110::lower_packing_builtins_visitor 197 return factory.constant(x); 218 return bitfield_insert(bit_and(swizzle_x(u), constant(0xffffu)), 220 constant(16u), 221 constant(16u)); 225 return bit_or(lshift(swizzle_y(u), constant(16u)), 226 bit_and(swizzle_x(u), constant(0xffffu))); 250 bit_and(swizzle_x(u), constant(0xffu)), 251 swizzle_y(u), constant(8u), constant( [all...] |
| H A D | opt_constant_propagation.cpp | 5 * constant of this software and associated documentation files (the "Software"), 7 * the rights to use, constant, modify, merge, publish, distribute, sublicense, 28 * usage of those constant channels with direct usage of the constants. 30 * This can lead to constant folding and algebraic optimizations in 33 * constant push buffer or as instruction immediate values) and 53 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) argument 56 assert(constant); 59 this->constant = constant; 67 this->constant 72 ir_constant *constant; member in class:__anon6f50ba640110::acp_entry 139 ir_constant *constant = local in function:__anon6f50ba640110::ir_constant_propagation_visitor::constant_folding 487 ir_constant *constant = ir->rhs->as_constant(); local in function:__anon6f50ba640110::ir_constant_propagation_visitor::add_constant [all...] |
| H A D | builtin_int64.h | 45 body.emit(assign(r0008, rshift(swizzle_y(r0007), body.constant(int(31))), 0x02)); 48 ir_expression *const r000A = nequal(r0009, body.constant(int(0))); 82 body.emit(assign(r0010, add(r0012, body.constant(int(32))), 0x01)); 85 ir_expression *const r0014 = equal(swizzle_y(r000D), body.constant(0u)); 101 body.emit(assign(r0017, body.constant(int(31)), 0x01)); 110 ir_expression *const r001B = less(r0017, body.constant(int(1))); 126 ir_expression *const r001D = sub(body.constant(int(31)), r0017); 140 ir_expression *const r0023 = lshift(body.constant(1u), r0017); 149 body.emit(assign(r0017, add(r0017, body.constant(int(-1))), 0x01)); 166 body.emit(assign(r0011, bit_or(swizzle_y(r0011), body.constant( [all...] |
| H A D | opt_constant_folding.cpp | 26 * Replace constant-valued expressions with references to constant values. 71 * expression has a non-constant operand, no need to go looking 72 * down it to find if it's constant. This cuts the time of this 94 /* No constant folding can be performed on variable dereferences. We need 103 ir_constant *constant = local in function:ir_constant_fold 105 if (constant) { 106 *rvalue = constant; 127 /* If the condition is constant, either remove the condition or 153 /* If the condition is constant, eithe [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/ |
| H A D | r300_tgsi_to_rc.c | 271 struct rc_constant constant; local in function:handle_immediate 294 constant.Type = RC_CONSTANT_IMMEDIATE; 295 constant.Size = 4; 297 constant.u.Immediate[i] = imm->u[i].Float; 298 rc_constants_add(&ttr->compiler->Program.Constants, &constant); 316 struct rc_constant constant; local in function:r300_tgsi_to_rc 317 memset(&constant, 0, sizeof(constant)); 318 constant.Type = RC_CONSTANT_EXTERNAL; 319 constant [all...] |
| /xsrc/external/mit/xf86-video-intel-2014/dist/src/sna/ |
| H A D | compiler.h | 38 #define constant __attribute__((const)) macro 50 #define constant macro
|
| /xsrc/external/mit/MesaLib/dist/src/freedreno/decode/scripts/ |
| H A D | sanity-a6xx.lua | 3 -- 2) Check for constant uploades that overwrite each other. The 5 -- use-case to do partial constant upload. But if we see two 42 -- initialize constant updated ranges: 73 printf("ERROR: invalid max constant offset for stage %s: %d vs %d\n", stage, max, r[cntl_reg].CONSTLEN)
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/panfrost/ |
| H A D | pan_blending.c | 44 * - constant float 50 * A single constant float can be passed to the fixed-function hardware, 51 * allowing CONSTANT_ALPHA support. Further, if all components of the constant 53 * constant float mode. If the components differ, programmable blending is 293 /* We can upload a single constant for all of the factors. So, scan the factors 295 * is a single unique constant, output that. If there are multiple, 313 /* Find the actual constant associated with the components used*/ 315 float constant = 0.0; local in function:panfrost_make_constant 324 /* Either there's a second constant, in which case we fail, or 325 * there's no constant / [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/tests/ |
| H A D | array_refcount_test.cpp | 503 body->constant(int(2))))); 534 deref_array(var_b, body->constant(int(2))), 535 body->constant(int(1))), 536 body->constant(int(0))))); 569 deref_array(var_b, body->constant(int(2))), 571 body->constant(int(1))))); 613 deref_array(var_b, body->constant(int(2))), 614 body->constant(int(3))), 675 deref_array(var_b, body->constant(int(0))), 676 body->constant(in [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/ |
| H A D | array_refcount_test.cpp | 494 body->constant(int(2))))); 525 deref_array(var_b, body->constant(int(2))), 526 body->constant(int(1))), 527 body->constant(int(0))))); 560 deref_array(var_b, body->constant(int(2))), 562 body->constant(int(1))))); 604 deref_array(var_b, body->constant(int(2))), 605 body->constant(int(3))), 666 deref_array(var_b, body->constant(int(0))), 667 body->constant(in [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/spirv/ |
| H A D | vtn_amd.c | 92 unsigned mask = val->constant->values[0].u32 | 93 val->constant->values[1].u32 << 2 | 94 val->constant->values[2].u32 << 4 | 95 val->constant->values[3].u32 << 6; 100 unsigned mask = val->constant->values[0].u32 | 101 val->constant->values[1].u32 << 5 | 102 val->constant->values[2].u32 << 10; 129 /* place constants at src[1-2] for easier constant-folding */
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/ |
| H A D | r300_tgsi_to_rc.c | 294 struct rc_constant constant; local in function:handle_immediate 317 constant.Type = RC_CONSTANT_IMMEDIATE; 318 constant.Size = 4; 320 constant.u.Immediate[i] = imm->u[i].Float; 321 rc_constants_add(&ttr->compiler->Program.Constants, &constant); 339 struct rc_constant constant; local in function:r300_tgsi_to_rc 340 memset(&constant, 0, sizeof(constant)); 341 constant.Type = RC_CONSTANT_EXTERNAL; 342 constant [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i915/ |
| H A D | i915_program.c | 315 p->constant[reg][idx] == c0) { 316 p->constant[reg][idx] = c0; 351 p->constant[reg][idx] = c0; 352 p->constant[reg][idx + 1] = c1; 377 p->constant[reg][0] == c0 && 378 p->constant[reg][1] == c1 && 379 p->constant[reg][2] == c2 && p->constant[reg][3] == c3) { 383 p->constant[reg][0] = c0; 384 p->constant[re [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/ |
| H A D | i915_program.c | 315 p->constant[reg][idx] == c0) { 316 p->constant[reg][idx] = c0; 351 p->constant[reg][idx] = c0; 352 p->constant[reg][idx + 1] = c1; 377 p->constant[reg][0] == c0 && 378 p->constant[reg][1] == c1 && 379 p->constant[reg][2] == c2 && p->constant[reg][3] == c3) { 383 p->constant[reg][0] = c0; 384 p->constant[re [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/ |
| H A D | lima_disk_cache.c | 58 blob_write_bytes(&blob, shader->constant, shader->state.constant_size); 129 shader->constant = rzalloc_size(shader, shader->state.constant_size); 130 if (!shader->constant) 132 blob_copy_bytes(&blob, shader->constant, shader->state.constant_size);
|
| /xsrc/external/mit/mesa-demos/dist/src/redbook/ |
| H A D | pointp.c | 52 * parameters attenuation mode to linear, quadratic, or constant, 70 static GLfloat constant[3] = {1.0, 0.0, 0.0}; variable in typeref:typename:GLfloat[3] 131 glPointParameterfvEXT (GL_DISTANCE_ATTENUATION_EXT, constant);
|
| /xsrc/external/mit/xf86-video-intel/dist/src/sna/ |
| H A D | compiler.h | 38 #define constant __attribute__((const)) macro 51 #define constant macro
|