Lines Matching refs:coef
101 struct tgsi_interp_coef coef[PIPE_MAX_SHADER_INPUTS]; member
407 struct tgsi_interp_coef *coef, in const_coeff() argument
412 coef->dadx[i] = 0; in const_coeff()
413 coef->dady[i] = 0; in const_coeff()
417 coef->a0[i] = setup->vprovoke[vertSlot][i]; in const_coeff()
428 struct tgsi_interp_coef *coef, in tri_linear_coeff() argument
441 coef->dadx[i] = dadx; in tri_linear_coeff()
442 coef->dady[i] = dady; in tri_linear_coeff()
456 coef->a0[i] = (v[0] - in tri_linear_coeff()
473 struct tgsi_interp_coef *coef, in tri_persp_coeff() argument
491 coef->dadx[i] = dadx; in tri_persp_coeff()
492 coef->dady[i] = dady; in tri_persp_coeff()
493 coef->a0[i] = (mina - in tri_persp_coeff()
515 setup->coef[slot].a0[0] = pixel_center_integer ? 0.0f : 0.5f; in setup_fragcoord_coeff()
516 setup->coef[slot].dadx[0] = 1.0f; in setup_fragcoord_coeff()
517 setup->coef[slot].dady[0] = 0.0f; in setup_fragcoord_coeff()
519 setup->coef[slot].a0[1] = in setup_fragcoord_coeff()
522 setup->coef[slot].dadx[1] = 0.0f; in setup_fragcoord_coeff()
523 setup->coef[slot].dady[1] = origin_lower_left ? -1.0f : 1.0f; in setup_fragcoord_coeff()
525 setup->coef[slot].a0[2] = setup->posCoef.a0[2]; in setup_fragcoord_coeff()
526 setup->coef[slot].dadx[2] = setup->posCoef.dadx[2]; in setup_fragcoord_coeff()
527 setup->coef[slot].dady[2] = setup->posCoef.dady[2]; in setup_fragcoord_coeff()
529 setup->coef[slot].a0[3] = setup->posCoef.a0[3]; in setup_fragcoord_coeff()
530 setup->coef[slot].dadx[3] = setup->posCoef.dadx[3]; in setup_fragcoord_coeff()
531 setup->coef[slot].dady[3] = setup->posCoef.dady[3]; in setup_fragcoord_coeff()
572 const_coeff(setup, &setup->coef[fragSlot], vertSlot, j); in setup_tri_coefficients()
580 tri_linear_coeff(setup, &setup->coef[fragSlot], j, v); in setup_tri_coefficients()
588 tri_persp_coeff(setup, &setup->coef[fragSlot], j, v); in setup_tri_coefficients()
600 setup->coef[fragSlot].a0[0] = setup->facing * -2.0f + 1.0f; in setup_tri_coefficients()
601 setup->coef[fragSlot].dadx[0] = 0.0; in setup_tri_coefficients()
602 setup->coef[fragSlot].dady[0] = 0.0; in setup_tri_coefficients()
609 setup->coef[fragSlot].a0[j], in setup_tri_coefficients()
610 setup->coef[fragSlot].dadx[j], in setup_tri_coefficients()
611 setup->coef[fragSlot].dady[j]); in setup_tri_coefficients()
836 struct tgsi_interp_coef *coef, in line_linear_coeff() argument
843 coef->dadx[i] = dadx; in line_linear_coeff()
844 coef->dady[i] = dady; in line_linear_coeff()
845 coef->a0[i] = (v[0] - in line_linear_coeff()
858 struct tgsi_interp_coef *coef, in line_persp_coeff() argument
867 coef->dadx[i] = dadx; in line_persp_coeff()
868 coef->dady[i] = dady; in line_persp_coeff()
869 coef->a0[i] = (a0 - in line_persp_coeff()
929 const_coeff(setup, &setup->coef[fragSlot], vertSlot, j); in setup_line_coefficients()
935 line_linear_coeff(setup, &setup->coef[fragSlot], j, v); in setup_line_coefficients()
942 line_persp_coeff(setup, &setup->coef[fragSlot], j, v); in setup_line_coefficients()
954 setup->coef[fragSlot].a0[0] = setup->facing * -2.0f + 1.0f; in setup_line_coefficients()
955 setup->coef[fragSlot].dadx[0] = 0.0; in setup_line_coefficients()
956 setup->coef[fragSlot].dady[0] = 0.0; in setup_line_coefficients()
1126 struct tgsi_interp_coef *coef, in point_persp_coeff() argument
1130 coef->dadx[i] = 0.0F; in point_persp_coeff()
1131 coef->dady[i] = 0.0F; in point_persp_coeff()
1132 coef->a0[i] = vert[vertSlot][i] * vert[0][3]; in point_persp_coeff()
1215 const_coeff(setup, &setup->coef[fragSlot], vertSlot, j); in sp_setup_point()
1220 &setup->coef[fragSlot], vertSlot, j); in sp_setup_point()
1231 setup->coef[fragSlot].a0[0] = setup->facing * -2.0f + 1.0f; in sp_setup_point()
1232 setup->coef[fragSlot].dadx[0] = 0.0; in sp_setup_point()
1233 setup->coef[fragSlot].dady[0] = 0.0; in sp_setup_point()
1438 setup->quad[i].coef = setup->coef; in sp_setup_create_context()