Home
last modified time | relevance | path

Searched refs:dadx (Results 1 – 19 of 19) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_point.c53 float (*dadx)[4]; member
71 info->dadx[slot][i] = 0.0f; in constant_coef()
94 info->dadx[slot][i] = 0.0f; in point_persp_coeff()
120 float dadx = FIXED_ONE / (float)info->dx12; in texcoord_coef() local
125 info->dadx[slot][0] = dadx; in texcoord_coef()
127 info->a0[slot][0] = 0.5 - (dadx * x0 + dady * y0); in texcoord_coef()
130 info->dadx[slot][0] *= w0; in texcoord_coef()
136 float dadx = 0.0f; in texcoord_coef() local
145 info->dadx[slot][1] = dadx; in texcoord_coef()
147 info->a0[slot][1] = 0.5 - (dadx * x0 + dady * y0); in texcoord_coef()
[all …]
Dlp_linear_interp.c74 __m128i dadx = interp->dadx; in interp_0_8() local
82 a0 = _mm_add_epi16(a0, dadx); in interp_0_8()
85 a0 = _mm_add_epi16(a0, dadx); in interp_0_8()
127 const float *dadx, in lp_linear_init_interp() argument
150 dsdx[j] = dadx[j] * oow; in lp_linear_init_interp()
158 dsdx[j] = dadx[j]; in lp_linear_init_interp()
206 interp->dadx = _mm_setr_epi16(dsdx_fp[2], dsdx_fp[1], dsdx_fp[0], dsdx_fp[3], in lp_linear_init_interp()
238 const float *dadx, in lp_linear_init_interp() argument
Dlp_state_fs_linear.c69 __m128i dadx; member
367 const float (*dadx)[4], in blit_rgba_blit()
383 dadx[0][3] != 0.0 || in blit_rgba_blit()
419 const float (*dadx)[4], in blit_rgb1_blit()
435 dadx[0][3] != 0.0 || in blit_rgb1_blit()
479 const float (*dadx)[4], in blit_rgba()
493 a0[1][0], dadx[1][0], dady[1][0], in blit_rgba()
494 a0[1][1], dadx[1][1], dady[1][1], in blit_rgba()
495 a0[0][3], dadx[0][3], dady[0][3])) in blit_rgba()
518 const float (*dadx)[4], in blit_rgb1()
[all …]
Dlp_linear_fastpath.c64 const float (*dadx)[4], in lp_linear_blit_rgba_blit()
80 dadx[0][3] != 0.0 || in lp_linear_blit_rgba_blit()
116 const float (*dadx)[4], in lp_linear_blit_rgb1_blit()
132 dadx[0][3] != 0.0 || in lp_linear_blit_rgb1_blit()
174 const float (*dadx)[4], in lp_linear_purple()
Dlp_setup_line.c55 float (*dadx)[4]; member
70 info->dadx[slot][i] = 0.0f; in constant_coef()
89 float dadx = da21 * info->dx * info->oneoverarea; in linear_coef() local
92 info->dadx[slot][i] = dadx; in linear_coef()
96 (dadx * (info->v1[0][0] - setup->pixel_offset) + in linear_coef()
121 float dadx = da21 * info->dx * info->oneoverarea; in perspective_coef() local
124 info->dadx[slot][i] = dadx; in perspective_coef()
128 (dadx * (info->v1[0][0] - setup->pixel_offset) + in perspective_coef()
141 info->dadx[slot][0] = 1.0; in setup_fragcoord_coef()
148 info->dadx[slot][1] = 0.0; in setup_fragcoord_coef()
[all …]
Dlp_linear_priv.h57 __m128i dadx; member
136 const float *dadx,
146 const float (*dadx)[4],
Dlp_state_setup.c72 LLVMValueRef dadx; member
93 LLVMValueRef dadx, in store_coef() argument
104 dadx, in store_coef()
105 LLVMBuildGEP(builder, args->dadx, &idx, 1, "")); in store_coef()
393 LLVMValueRef dadx = LLVMBuildFSub(b, da01_dy20_ooa, da20_dy01_ooa, "dadx"); in calc_coef4() local
403 LLVMValueRef dadx_x0 = LLVMBuildFMul(b, dadx, x0_center, "dadx_x0"); in calc_coef4()
409 out[1] = dadx; in calc_coef4()
707 args.dadx = LLVMGetParam(variant->function, 5); in generate_setup_variant()
716 lp_build_name(args.dadx, "out_dadx"); in generate_setup_variant()
934 float dadx = sdadx[0][i]; in lp_dump_setup_coef() local
[all …]
Dlp_state_fs_fastpath.c51 const void *dadx, in no_op() argument
149 const void *dadx, in red() argument
176 const void *dadx, in green() argument
Dlp_linear.c78 const float (*dadx)[4], in lp_fs_linear_run()
104 if (dadx[0][3] != 0.0f || in lp_fs_linear_run()
154 dadx[i+1], in lp_fs_linear_run()
181 a0, dadx, dady)) { in lp_fs_linear_run()
Dlp_bld_interp.c319 LLVMValueRef dadx = coeff_bld->zero; in attribs_update_simple() local
331 dadx = coeff_bld->one; in attribs_update_simple()
352 dadx = lp_build_extract_broadcast(gallivm, setup_bld->type, in attribs_update_simple()
385 a = lp_build_fmuladd(builder, dadx, chan_pixoffx, a); in attribs_update_simple()
452 LLVMValueRef dadx = coeff_bld->zero; in lp_build_interp_soa_indirect() local
472 dadx = lp_build_gather(gallivm, coeff_bld->type.length, in lp_build_interp_soa_indirect()
487 a = lp_build_fmuladd(builder, dadx, pixoffx, a); in lp_build_interp_soa_indirect()
604 LLVMValueRef dadx = coeff_bld->zero; in lp_build_interp_soa() local
614 dadx = lp_build_extract_broadcast(gallivm, setup_bld->type, in lp_build_interp_soa()
629 a = lp_build_fmuladd(builder, dadx, pixoffx, a); in lp_build_interp_soa()
Dlp_state_setup.h45 float (*dadx)[4],
Dlp_jit.h315 const void *dadx,
410 const float (*dadx)[4],
Dlp_linear_sampler.c744 const float (*dadx)[4], in lp_linear_init_sampler()
753 float dsdx = dadx[schan->u.index+1][schan->swizzle]; in lp_linear_init_sampler()
757 float dtdx = dadx[tchan->u.index+1][tchan->swizzle]; in lp_linear_init_sampler()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c412 coef->dadx[i] = 0; in const_coeff()
436 float dadx = a * setup->oneoverarea; in tri_linear_coeff() local
441 coef->dadx[i] = dadx; in tri_linear_coeff()
457 (dadx * (setup->vmin[0][0] - setup->pixel_offset) + in tri_linear_coeff()
486 float dadx = a * setup->oneoverarea; in tri_persp_coeff() local
491 coef->dadx[i] = dadx; in tri_persp_coeff()
494 (dadx * (setup->vmin[0][0] - setup->pixel_offset) + in tri_persp_coeff()
516 setup->coef[slot].dadx[0] = 1.0f; in setup_fragcoord_coeff()
522 setup->coef[slot].dadx[1] = 0.0f; in setup_fragcoord_coeff()
526 setup->coef[slot].dadx[2] = setup->posCoef.dadx[2]; in setup_fragcoord_coeff()
[all …]
Dsp_fs_exec.c96 const float dadx = coef->dadx[chan]; in setup_pos_vector() local
98 const float a0 = coef->a0[chan] + dadx * x + dady * y; in setup_pos_vector()
100 quadpos->xyzw[chan].f[1] = a0 + dadx; in setup_pos_vector()
102 quadpos->xyzw[chan].f[3] = a0 + dadx + dady; in setup_pos_vector()
Dsp_quad_depth_test_tmp.h58 const float dzdx = quads[0]->posCoef->dadx[2]; in NAME()
Dsp_quad_depth_test.c138 const float dzdx = quad->posCoef->dadx[2]; in interpolate_quad_depth()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.h96 float dadx[TGSI_NUM_CHANNELS]; member
Dtgsi_exec.c2755 const float dadx = mach->InterpCoefs[attrib].dadx[chan]; in interp_linear_offset() local
2757 const float delta = ofs_x * dadx + ofs_y * dady; in interp_linear_offset()
2771 const float dadx = mach->InterpCoefs[attrib].dadx[chan]; in eval_linear_coef() local
2773 const float a0 = mach->InterpCoefs[attrib].a0[chan] + dadx * x + dady * y; in eval_linear_coef()
2776 mach->Inputs[attrib].xyzw[chan].f[1] = a0 + dadx; in eval_linear_coef()
2778 mach->Inputs[attrib].xyzw[chan].f[3] = a0 + dadx + dady; in eval_linear_coef()
2795 const float dadx = mach->InterpCoefs[attrib].dadx[chan]; in interp_perspective_offset() local
2798 const float delta = ofs_x * dadx + ofs_y * dady; in interp_perspective_offset()
2813 const float dadx = mach->InterpCoefs[attrib].dadx[chan]; in eval_perspective_coef() local
2815 const float a0 = mach->InterpCoefs[attrib].a0[chan] + dadx * x + dady * y; in eval_perspective_coef()
[all …]