/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_llvm.c | 866 LLVMValueRef zero, shift; local 887 shift = lp_build_const_int_vec(gallivm, i32_type, 1); /* 1 1 1 1 */ 914 temp = shift; 921 temp = LLVMBuildShl(builder, temp, shift, ""); 927 temp = LLVMBuildShl(builder, temp, shift, ""); 934 temp = LLVMBuildShl(builder, temp, shift, ""); 956 temp = LLVMBuildShl(builder, temp, shift, "");
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_arit.c | 704 LLVMValueRef shift; local 743 shift = lp_build_const_int_vec(bld->gallivm, type, type.width/2); 745 shift = NULL; 752 if(shift) { 754 res = LLVMConstAShr(res, shift); 756 res = LLVMConstLShr(res, shift); 764 if(shift) { 766 res = LLVMBuildAShr(builder, res, shift, ""); 768 res = LLVMBuildLShr(builder, res, shift, ""); 802 unsigned shift local 938 LLVMValueRef shift; local 1223 LLVMValueRef shift = lp_build_const_int_vec(bld->gallivm, type, type.width - 1); local [all...] |
H A D | lp_bld_conv.c | 325 int shift = src_width - mantissa; local 327 lp_build_const_int_vec(gallivm, dst_type, shift), ""); 592 LLVMValueRef shift = lp_build_const_int_vec(gallivm, tmp_type, src_shift - 1); local 594 shifted = LLVMBuildAShr(builder, tmp[i], shift, ""); 596 shifted = LLVMBuildLShr(builder, tmp[i], shift, ""); 603 LLVMValueRef shift = lp_build_const_int_vec(gallivm, tmp_type, local 607 tmp[i] = LLVMBuildAShr(builder, tmp[i], shift, ""); 609 tmp[i] = LLVMBuildLShr(builder, tmp[i], shift, ""); 686 LLVMValueRef shift = lp_build_const_int_vec(gallivm, tmp_type, dst_shift - src_shift); local 690 tmp[i] = LLVMBuildShl(builder, tmp[i], shift, ""); [all...] |
H A D | lp_bld_format_aos.c | 161 unsigned shift; local 192 shift = 0; 212 shifts[i] = lp_build_const_int32(gallivm, shift); 223 shift += bits; 275 unsigned shift; local 301 shift = 0; 315 shifts[i] = lp_build_const_int32(gallivm, shift); 325 shift += bits;
|
H A D | lp_bld_format_yuv.c | 82 * Avoid shift with per-element count. 100 LLVMValueRef shift; local 101 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), ""); 102 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 8), ""); 103 *y = LLVMBuildLShr(builder, packed, shift, ""); 150 * Avoid shift with per-element count. 167 LLVMValueRef shift; local 168 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), ""); 169 *y = LLVMBuildLShr(builder, packed, shift, ""); [all...] |
H A D | lp_bld_swizzle.c | 229 int shift = shifts[channel][i]; local 232 shift = -shift; 235 if(shift > 0) 236 tmp = LLVMBuildLShr(builder, a, lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), ""); 237 if(shift < 0) 238 tmp = LLVMBuildShl(builder, a, lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), ""); 360 int shift; local 385 * Mask and shift the channels, trying to group as many channels in the 386 * same shift a [all...] |
/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_mpeg12_bitstream.c | 651 wrap(short f, int shift) argument 653 if (f < (-16 << shift)) 654 return f + (32 << shift); 655 else if (f >= 16 << shift) 656 return f - (32 << shift);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_depth.c | 347 * Compute bitmask and bit shift to apply to the incoming fragment Z values 356 unsigned *shift, unsigned *width, unsigned *mask) 390 *shift = padding_right; 397 * Compute bitmask and bit shift to apply to the framebuffer pixel values 403 unsigned *shift, unsigned *mask) 413 *shift = 0; 415 *shift += format_desc->channel[chan].size; 656 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_type, z_shift); local 657 z_dst = LLVMBuildLShr(builder, zs_dst, shift, "z_dst"); 670 LLVMValueRef shift local 355 get_z_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *width, unsigned *mask) argument 402 get_s_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *mask) argument 748 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_src_type, local 819 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_type, z_shift); local [all...] |
H A D | lp_state_fs.c | 125 int shift, i; local 139 shift = 0; 143 shift = 2; 146 shift = 8; 150 shift = 10; 154 shift = 0; 159 LLVMConstInt(i32t, shift, 0),
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | r300_fragprog_emit.c | 538 int shift = 3 - emit.current_node; local 541 code->code_addr[shift + i] = code->code_addr[i]; 542 for(i = 0; i < shift; ++i)
|
/external/mesa3d/src/gallium/drivers/radeon/ |
H A D | AMDILPeepholeOptimizer.cpp | 82 Constant *&shift); 393 Constant *&shift) 403 shift = dyn_cast<Constant>(base->getOperand(1)); 427 if (src->getOpcode() == Instruction::Shl && !shift) { 428 shift = dyn_cast<Constant>(src->getOperand(1)); 433 if (!mask && !shift) { 435 dbgs() << "Failed setup since both mask and shift are NULL!\n"; 437 // Did not find a constant mask or a shift. 733 // If the first operand is not a shift instruction, then we can return as it 738 // If we are a shift lef 390 setupBitInsert(Instruction *base, Instruction *&src, Constant *&mask, Constant *&shift) argument [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | api_filters.c | 274 static VGfloat texture_offset(VGfloat width, VGint kernelSize, VGint current, VGint shift) argument 276 VGfloat diff = current - shift;
|
H A D | bezier.c | 330 static enum shift_result shift(const struct bezier *orig, function 547 res = shift(b, o, normal_len, threshold); 567 enum shift_result res = shift(b, o, normal_len, threshold);
|
H A D | image.c | 87 VGfloat src_shift[4], dst_shift[4], shift[4]; local 101 shift[0] = src_shift[0] - dst_shift[0]; 102 shift[1] = src_shift[1] - dst_shift[1]; 104 if (shift[0] < 0) 105 vg_shift_rectx(src_loc, src_bounds, -shift[0]); 107 vg_shift_rectx(dst_loc, dst_bounds, shift[0]); 109 if (shift[1] < 0) 110 vg_shift_recty(src_loc, src_bounds, -shift[1]); 112 vg_shift_recty(dst_loc, dst_bounds, shift[1]);
|
H A D | vg_context.h | 196 const VGfloat shift) 198 coords[0] += shift; 199 coords[2] -= shift; 211 const VGfloat shift) 213 coords[1] += shift; 214 coords[3] -= shift; 225 VGfloat shift[4]) 236 shift[0] = 0.f; 237 shift[1] = 0.f; 243 shift[ 194 vg_shift_rectx(VGfloat coords[4], const VGfloat *bounds, const VGfloat shift) argument 209 vg_shift_recty(VGfloat coords[4], const VGfloat *bounds, const VGfloat shift) argument 223 vg_bound_rect(VGfloat coords[4], const VGfloat bounds[4], VGfloat shift[4]) argument [all...] |
H A D | vg_translate.c | 686 VGint shift = j; local 687 clr[0] = (((*src) & (1<<shift)) >> shift); 710 VGint shift = j; local 714 clr[3] = (((*src) & (1<<shift)) >> shift); 733 VGint bitter, shift; local 736 shift = 0; 739 shift = 4; 744 clr[3] = ((*src) & (bitter)) >> shift; [all...] |
/external/mesa3d/src/gallium/state_trackers/wgl/ |
H A D | stw_pixelformat.c | 56 } shift; member in struct:stw_pf_color_info 167 pfi->pfd.cRedShift = color->shift.red; 169 pfi->pfd.cGreenShift = color->shift.green; 171 pfi->pfd.cBlueShift = color->shift.blue; 173 pfi->pfd.cAlphaShift = color->shift.alpha;
|
/external/mesa3d/src/glx/ |
H A D | XF86dri.c | 199 int shift = 32; /* var to prevent warning on next line */ local 200 *hSAREA |= ((drm_handle_t) rep.hSAREAHigh) << shift; 506 * backwards compatibility (Because of the >> 2 shift) but the fix 575 int shift = 32; /* var to prevent warning on next line */ local 576 *hFrameBuffer |= ((drm_handle_t) rep.hFrameBufferHigh) << shift;
|
/external/mesa3d/src/mesa/drivers/dri/common/ |
H A D | xmlconfig.c | 113 GLuint i, shift; local 116 for (i = 0, shift = 0; i < len; ++i, shift = (shift+8) & 31) 117 hash += (GLuint)name[i] << shift;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_shader.cpp | 320 const unsigned shift = 4 * (2 - i); local 321 offset_bits |= (offsets[i] << shift) & (0xF << shift);
|
/external/mesa3d/src/mesa/main/ |
H A D | ff_fragment_shader.cpp | 816 rgb_saturate = GL_FALSE; /* saturate after rgb shift */ 823 alpha_saturate = GL_FALSE; /* saturate after alpha shift */ 883 /* Deal with the final shift: 886 ir_constant *shift; local 889 shift = new(p->mem_ctx) ir_constant((float)(1 << rgb_shift)); 898 shift = new(p->mem_ctx) ir_constant(glsl_type::vec4_type, 902 return saturate(mul(deref, shift));
|
H A D | get.c | 2068 int shift, i; local 2145 shift = d->type - TYPE_BIT_0; 2146 params[0] = (*(GLbitfield *) p >> shift) & 1; 2157 int shift, i; local 2234 shift = d->type - TYPE_BIT_0; 2235 params[0] = BOOLEAN_TO_FLOAT((*(GLbitfield *) p >> shift) & 1); 2246 int shift, i; local 2329 shift = d->type - TYPE_BIT_0; 2330 params[0] = (*(GLbitfield *) p >> shift) & 1; 2342 int shift, local 2438 int shift, i; local 2737 int shift, i; local [all...] |
H A D | pack.c | 5163 /* only shift and offset apply to stencil */ 5197 /* shift and offset indexes */ 5359 GLint shift = 0; local 5362 if (shift == 0) 5364 *dst |= ((source[i] != 0) << shift); 5365 shift++; 5366 if (shift == 8) { 5367 shift = 0; 5374 GLint shift = 7; local 5377 if (shift [all...] |
H A D | pixeltransfer.c | 192 * Apply color index shift and offset to an array of pixels. 198 GLint shift = ctx->Pixel.IndexShift; local 201 if (shift > 0) { 203 indexes[i] = (indexes[i] << shift) + offset; 206 else if (shift < 0) { 207 shift = -shift; 209 indexes[i] = (indexes[i] >> shift) + offset; 222 * Apply color index shift, offset and table lookup to an array 245 * Apply stencil index shift, offse 254 GLint shift = ctx->Pixel.IndexShift; local [all...] |
H A D | texenv.c | 352 GLuint shift; local 355 shift = 0; 358 shift = 1; 361 shift = 2; 371 if (texUnit->Combine.ScaleShiftRGB == shift) 374 texUnit->Combine.ScaleShiftRGB = shift; 377 if (texUnit->Combine.ScaleShiftA == shift) 380 texUnit->Combine.ScaleShiftA = shift;
|