Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_point.c51 float (*dadx)[4]; member
67 info->dadx[slot][i] = 0.0f; in constant_coef()
90 info->dadx[slot][i] = 0.0f; in point_persp_coeff()
116 float dadx = FIXED_ONE / (float)info->dx12; in texcoord_coef() local
121 info->dadx[slot][0] = dadx; in texcoord_coef()
123 info->a0[slot][0] = 0.5 - (dadx * x0 + dady * y0); in texcoord_coef()
126 info->dadx[slot][0] *= w0; in texcoord_coef()
132 float dadx = 0.0f; in texcoord_coef() local
141 info->dadx[slot][1] = dadx; in texcoord_coef()
143 info->a0[slot][1] = 0.5 - (dadx * x0 + dady * y0); in texcoord_coef()
[all …]
Dlp_setup_line.c52 float (*dadx)[4]; member
67 info->dadx[slot][i] = 0.0f; in constant_coef()
86 float dadx = da21 * info->dx * info->oneoverarea; in linear_coef() local
89 info->dadx[slot][i] = dadx; in linear_coef()
93 (dadx * (info->v1[0][0] - setup->pixel_offset) + in linear_coef()
118 float dadx = da21 * info->dx * info->oneoverarea; in perspective_coef() local
121 info->dadx[slot][i] = dadx; in perspective_coef()
125 (dadx * (info->v1[0][0] - setup->pixel_offset) + in perspective_coef()
138 info->dadx[slot][0] = 1.0; in setup_fragcoord_coef()
145 info->dadx[slot][1] = 0.0; in setup_fragcoord_coef()
[all …]
Dlp_bld_interp.c280 LLVMValueRef dadx = coeff_bld->zero; in attribs_update_simple() local
291 dadx = coeff_bld->one; in attribs_update_simple()
297 dadx = lp_build_extract_broadcast(gallivm, setup_bld->type, in attribs_update_simple()
310 dadx = LLVMBuildFMul(builder, dadx, pixoffx, ""); in attribs_update_simple()
312 a = LLVMBuildFAdd(builder, a, dadx, ""); in attribs_update_simple()
457 LLVMValueRef dadx, dady; in coeffs_init() local
464 dadx = coeff_bld->one; in coeffs_init()
470 dadx = coeff_bld->zero; in coeffs_init()
473 dadx = lp_build_extract_broadcast(gallivm, setup_bld->type, in coeffs_init()
485 dadx = LLVMBuildFMul(builder, dadx, pixoffx, ""); in coeffs_init()
[all …]
Dlp_state_setup.c68 LLVMValueRef dadx; member
137 LLVMValueRef dadx, in store_coef() argument
148 dadx, in store_coef()
149 LLVMBuildGEP(builder, args->dadx, &idx, 1, "")); in store_coef()
374 LLVMValueRef dadx = LLVMBuildFSub(b, da01_dy20_ooa, da20_dy01_ooa, "dadx"); in emit_coef4() local
384 LLVMValueRef dadx_x0 = LLVMBuildFMul(b, dadx, x0_center, "dadx_x0"); in emit_coef4()
389 store_coef(gallivm, args, slot, attr_0, dadx, dady); in emit_coef4()
734 args.dadx = LLVMGetParam(variant->function, 5); in generate_setup_variant()
742 lp_build_name(args.dadx, "out_dadx"); in generate_setup_variant()
956 float dadx = sdadx[0][i]; in lp_dump_setup_coef() local
[all …]
Dlp_state_setup.h41 float (*dadx)[4],
Dlp_jit.h152 const void *dadx,
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c467 coef->dadx[i] = 0; in const_coeff()
491 float dadx = a * setup->oneoverarea; in tri_linear_coeff() local
496 coef->dadx[i] = dadx; in tri_linear_coeff()
512 (dadx * (setup->vmin[0][0] - setup->pixel_offset) + in tri_linear_coeff()
549 float dadx = a * setup->oneoverarea; in tri_persp_coeff() local
561 coef->dadx[i] = dadx; in tri_persp_coeff()
564 (dadx * (setup->vmin[0][0] - setup->pixel_offset) + in tri_persp_coeff()
582 setup->coef[slot].dadx[0] = 1.0; in setup_fragcoord_coeff()
588 setup->coef[slot].dadx[1] = 0.0; in setup_fragcoord_coeff()
592 setup->coef[slot].dadx[2] = setup->posCoef.dadx[2]; in setup_fragcoord_coeff()
[all …]
Dsp_fs_exec.c103 const float dadx = coef->dadx[chan]; in setup_pos_vector() local
105 const float a0 = coef->a0[chan] + dadx * x + dady * y; in setup_pos_vector()
107 quadpos->xyzw[chan].f[1] = a0 + dadx; in setup_pos_vector()
109 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.c136 const float dzdx = quad->posCoef->dadx[2]; in interpolate_quad_depth()
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.h87 float dadx[TGSI_NUM_CHANNELS]; member
Dtgsi_exec.c2299 const float dadx = mach->InterpCoefs[attrib].dadx[chan]; in eval_linear_coef() local
2301 const float a0 = mach->InterpCoefs[attrib].a0[chan] + dadx * x + dady * y; in eval_linear_coef()
2303 mach->Inputs[attrib].xyzw[chan].f[1] = a0 + dadx; in eval_linear_coef()
2305 mach->Inputs[attrib].xyzw[chan].f[3] = a0 + dadx + dady; in eval_linear_coef()
2320 const float dadx = mach->InterpCoefs[attrib].dadx[chan]; in eval_perspective_coef() local
2322 const float a0 = mach->InterpCoefs[attrib].a0[chan] + dadx * x + dady * y; in eval_perspective_coef()
2326 mach->Inputs[attrib].xyzw[chan].f[1] = (a0 + dadx) / w[1]; in eval_perspective_coef()
2328 mach->Inputs[attrib].xyzw[chan].f[3] = (a0 + dadx + dady) / w[3]; in eval_perspective_coef()