Lines Matching refs:coef
101 struct tgsi_interp_coef coef[PIPE_MAX_SHADER_INPUTS]; member
453 struct tgsi_interp_coef *coef, in const_coeff() argument
458 coef->dadx[i] = 0; in const_coeff()
459 coef->dady[i] = 0; in const_coeff()
463 coef->a0[i] = setup->vprovoke[vertSlot][i]; in const_coeff()
474 struct tgsi_interp_coef *coef, in tri_linear_coeff() argument
487 coef->dadx[i] = dadx; in tri_linear_coeff()
488 coef->dady[i] = dady; in tri_linear_coeff()
502 coef->a0[i] = (v[0] - in tri_linear_coeff()
519 struct tgsi_interp_coef *coef, in tri_persp_coeff() argument
537 coef->dadx[i] = dadx; in tri_persp_coeff()
538 coef->dady[i] = dady; in tri_persp_coeff()
539 coef->a0[i] = (mina - in tri_persp_coeff()
561 setup->coef[slot].a0[0] = pixel_center_integer ? 0.0f : 0.5f; in setup_fragcoord_coeff()
562 setup->coef[slot].dadx[0] = 1.0f; in setup_fragcoord_coeff()
563 setup->coef[slot].dady[0] = 0.0f; in setup_fragcoord_coeff()
565 setup->coef[slot].a0[1] = in setup_fragcoord_coeff()
568 setup->coef[slot].dadx[1] = 0.0f; in setup_fragcoord_coeff()
569 setup->coef[slot].dady[1] = origin_lower_left ? -1.0f : 1.0f; in setup_fragcoord_coeff()
571 setup->coef[slot].a0[2] = setup->posCoef.a0[2]; in setup_fragcoord_coeff()
572 setup->coef[slot].dadx[2] = setup->posCoef.dadx[2]; in setup_fragcoord_coeff()
573 setup->coef[slot].dady[2] = setup->posCoef.dady[2]; in setup_fragcoord_coeff()
575 setup->coef[slot].a0[3] = setup->posCoef.a0[3]; in setup_fragcoord_coeff()
576 setup->coef[slot].dadx[3] = setup->posCoef.dadx[3]; in setup_fragcoord_coeff()
577 setup->coef[slot].dady[3] = setup->posCoef.dady[3]; in setup_fragcoord_coeff()
618 const_coeff(setup, &setup->coef[fragSlot], vertSlot, j); in setup_tri_coefficients()
628 tri_linear_coeff(setup, &setup->coef[fragSlot], j, v); in setup_tri_coefficients()
638 tri_persp_coeff(setup, &setup->coef[fragSlot], j, v); in setup_tri_coefficients()
650 setup->coef[fragSlot].a0[0] = setup->facing * -2.0f + 1.0f; in setup_tri_coefficients()
651 setup->coef[fragSlot].dadx[0] = 0.0; in setup_tri_coefficients()
652 setup->coef[fragSlot].dady[0] = 0.0; in setup_tri_coefficients()
659 setup->coef[fragSlot].a0[j], in setup_tri_coefficients()
660 setup->coef[fragSlot].dadx[j], in setup_tri_coefficients()
661 setup->coef[fragSlot].dady[j]); in setup_tri_coefficients()
912 struct tgsi_interp_coef *coef, in line_linear_coeff() argument
919 coef->dadx[i] = dadx; in line_linear_coeff()
920 coef->dady[i] = dady; in line_linear_coeff()
921 coef->a0[i] = (v[0] - in line_linear_coeff()
934 struct tgsi_interp_coef *coef, in line_persp_coeff() argument
943 coef->dadx[i] = dadx; in line_persp_coeff()
944 coef->dady[i] = dady; in line_persp_coeff()
945 coef->a0[i] = (a0 - in line_persp_coeff()
1005 const_coeff(setup, &setup->coef[fragSlot], vertSlot, j); in setup_line_coefficients()
1013 line_linear_coeff(setup, &setup->coef[fragSlot], j, v); in setup_line_coefficients()
1022 line_persp_coeff(setup, &setup->coef[fragSlot], j, v); in setup_line_coefficients()
1034 setup->coef[fragSlot].a0[0] = setup->facing * -2.0f + 1.0f; in setup_line_coefficients()
1035 setup->coef[fragSlot].dadx[0] = 0.0; in setup_line_coefficients()
1036 setup->coef[fragSlot].dady[0] = 0.0; in setup_line_coefficients()
1206 struct tgsi_interp_coef *coef, in point_persp_coeff() argument
1210 coef->dadx[i] = 0.0F; in point_persp_coeff()
1211 coef->dady[i] = 0.0F; in point_persp_coeff()
1212 coef->a0[i] = vert[vertSlot][i] * vert[0][3]; in point_persp_coeff()
1295 const_coeff(setup, &setup->coef[fragSlot], vertSlot, j); in sp_setup_point()
1300 &setup->coef[fragSlot], vertSlot, j); in sp_setup_point()
1311 setup->coef[fragSlot].a0[0] = setup->facing * -2.0f + 1.0f; in sp_setup_point()
1312 setup->coef[fragSlot].dadx[0] = 0.0; in sp_setup_point()
1313 setup->coef[fragSlot].dady[0] = 0.0; in sp_setup_point()
1518 setup->quad[i].coef = setup->coef; in sp_setup_create_context()