HomeSort by: relevance | last modified time | path
    Searched refs:constant (Results 1 - 25 of 163) sorted by relevancy

1 2 3 4 5 6 7

  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/
radeon_code.c 59 unsigned rc_constants_add(struct rc_constant_list * c, struct rc_constant * constant)
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
100 memset(&constant, 0, sizeof(constant));
101 constant.Type = RC_CONSTANT_STATE;
102 constant.Size = 4;
103 constant.u.State[0] = state0;
104 constant.u.State[1] = state1
117 struct rc_constant constant; local
143 struct rc_constant constant; local
    [all...]
radeon_inline_literals.c 97 struct rc_constant * constant; local
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.old/dist/src/gallium/drivers/r300/compiler/
radeon_code.c 59 unsigned rc_constants_add(struct rc_constant_list * c, struct rc_constant * constant)
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
100 memset(&constant, 0, sizeof(constant));
101 constant.Type = RC_CONSTANT_STATE;
102 constant.Size = 4;
103 constant.u.State[0] = state0;
104 constant.u.State[1] = state1
117 struct rc_constant constant; local
143 struct rc_constant constant; local
    [all...]
radeon_inline_literals.c 97 struct rc_constant * constant; local
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/
lower_packing_builtins.cpp 195 constant(T x) function in class:__anon714::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(8u))
    [all...]
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)
56 assert(constant);
59 this->constant = constant;
67 this->constant = src->constant
72 ir_constant *constant; member in class:__anon734::acp_entry
139 ir_constant *constant = local
496 ir_constant *constant = ir->rhs->as_constant(); local
    [all...]
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(1u)), 0x02))
    [all...]
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 =
105 if (constant) {
106 *rvalue = constant;
127 /* If the condition is constant, either remove the condition or
153 /* If the condition is constant, either remove the condition o
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/
lower_packing_builtins.cpp 195 constant(T x) function in class:__anon3350::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(8u))
    [all...]
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)
56 assert(constant);
59 this->constant = constant;
67 this->constant = src->constant
72 ir_constant *constant; member in class:__anon3369::acp_entry
139 ir_constant *constant = local
487 ir_constant *constant = ir->rhs->as_constant(); local
    [all...]
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(1u)), 0x02))
    [all...]
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 =
105 if (constant) {
106 *rvalue = constant;
127 /* If the condition is constant, either remove the condition or
153 /* If the condition is constant, either remove the condition o
    [all...]
  /xsrc/external/mit/fontconfig/dist/doc/
fcconstant.fncs 45 @PURPOSE@ Lookup symbolic constant
47 Return the FcConstant structure related to symbolic constant <parameter>string</parameter>.
54 @PURPOSE@ Lookup symbolic constant For object
56 Return the FcConstant structure related to symbolic constant <parameter>string</parameter>
64 @PURPOSE@ Get the value for a symbolic constant
66 Returns whether a symbolic constant with name <parameter>string</parameter> is registered,
67 placing the value of the constant in <parameter>result</parameter> if present.
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/
r300_tgsi_to_rc.c 271 struct rc_constant constant; local
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
317 memset(&constant, 0, sizeof(constant));
318 constant.Type = RC_CONSTANT_EXTERNAL;
319 constant.Size = 4
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/freedreno/decode/scripts/
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/xf86-video-intel-2014/dist/src/sna/
compiler.h 38 #define constant __attribute__((const)) macro
50 #define constant macro
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/panfrost/
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
324 /* Either there's a second constant, in which case we fail, or
325 * there's no constant / a first constant, in which case we us
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/tests/
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(int(0)))
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/
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(int(0)))
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/spirv/
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/
r300_tgsi_to_rc.c 294 struct rc_constant constant; local
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
340 memset(&constant, 0, sizeof(constant));
341 constant.Type = RC_CONSTANT_EXTERNAL;
342 constant.Size = 4
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/
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[reg][1] = c1
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i915/
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[reg][1] = c1
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/
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/
pointp.c 52 * parameters attenuation mode to linear, quadratic, or constant,
70 static GLfloat constant[3] = {1.0, 0.0, 0.0}; variable
131 glPointParameterfvEXT (GL_DISTANCE_ATTENUATION_EXT, constant);

Completed in 27 milliseconds

1 2 3 4 5 6 7