Lines Matching refs:ureg
301 struct ureg {
321 struct ureg eye_position;
322 struct ureg eye_position_z;
323 struct ureg eye_position_normalized;
324 struct ureg transformed_normal;
325 struct ureg identity;
332 static const struct ureg undef = {
348 /* Construct a ureg:
350 static struct ureg make_ureg(GLuint file, GLint idx)
352 struct ureg reg;
362 static struct ureg negate( struct ureg reg )
369 static struct ureg swizzle( struct ureg reg, int x, int y, int z, int w )
379 static struct ureg swizzle1( struct ureg reg, int x )
385 static struct ureg get_temp( struct tnl_program *p )
401 static struct ureg reserve_temp( struct tnl_program *p )
403 struct ureg temp = get_temp( p );
409 static void release_temp( struct tnl_program *p, struct ureg reg )
423 static struct ureg register_param4(struct tnl_program *p,
449 static struct ureg register_input( struct tnl_program *p, GLuint input )
466 static struct ureg register_output( struct tnl_program *p, GLuint output )
473 static struct ureg register_const4f( struct tnl_program *p,
497 static GLboolean is_undef( struct ureg reg )
503 static struct ureg get_identity_param( struct tnl_program *p )
516 struct ureg *matrix )
529 struct ureg reg )
542 struct ureg reg, GLuint mask )
572 struct ureg dest,
574 struct ureg src0,
575 struct ureg src1,
576 struct ureg src2,
632 static struct ureg make_temp( struct tnl_program *p, struct ureg reg )
638 struct ureg temp = get_temp(p);
650 struct ureg dest,
651 const struct ureg *mat,
652 struct ureg src)
666 struct ureg dest,
667 const struct ureg *mat,
668 struct ureg src)
670 struct ureg tmp;
688 struct ureg dest,
689 const struct ureg *mat,
690 struct ureg src)
699 struct ureg dest,
700 struct ureg src )
702 struct ureg tmp = get_temp(p);
714 struct ureg out = register_output(p, output);
719 static struct ureg get_eye_position( struct tnl_program *p )
722 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
723 struct ureg modelview[4];
745 static struct ureg get_eye_position_z( struct tnl_program *p )
751 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
752 struct ureg modelview[4];
766 static struct ureg get_eye_position_normalized( struct tnl_program *p )
769 struct ureg eye = get_eye_position(p);
778 static struct ureg get_transformed_normal( struct tnl_program *p )
789 struct ureg normal = register_input(p, VERT_ATTRIB_NORMAL );
790 struct ureg mvinv[3];
791 struct ureg transformed_normal = reserve_temp(p);
812 struct ureg rescale = register_param1(p, STATE_NORMAL_SCALE);
828 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
829 struct ureg hpos = register_output( p, VARYING_SLOT_POS );
830 struct ureg mvp[4];
882 static struct ureg get_material( struct tnl_program *p, GLuint side,
915 static struct ureg get_scenecolor( struct tnl_program *p, GLuint side )
918 struct ureg lm_ambient = register_param1(p, STATE_LIGHTMODEL_AMBIENT);
919 struct ureg material_emission = get_material(p, side, STATE_EMISSION);
920 struct ureg material_ambient = get_material(p, side, STATE_AMBIENT);
921 struct ureg material_diffuse = get_material(p, side, STATE_DIFFUSE);
922 struct ureg tmp = make_temp(p, material_diffuse);
932 static struct ureg get_lightprod( struct tnl_program *p, GLuint light,
937 struct ureg light_value =
949 static struct ureg calculate_light_attenuation( struct tnl_program *p,
951 struct ureg VPpli,
952 struct ureg dist )
954 struct ureg attenuation = undef;
955 struct ureg att = undef;
960 struct ureg spot_dir_norm = register_param2(p, STATE_LIGHT_SPOT_DIR_NORMALIZED, i);
961 struct ureg spot = get_temp(p);
962 struct ureg slt = get_temp(p);
1017 struct ureg lit,
1018 struct ureg dots )
1020 struct ureg id = get_identity_param(p); /* id = {0,0,0,1} */
1046 struct ureg normal = get_transformed_normal(p);
1047 struct ureg lit = get_temp(p);
1048 struct ureg dots = get_temp(p);
1049 struct ureg _col0 = undef, _col1 = undef;
1050 struct ureg _bfc0 = undef, _bfc1 = undef;
1069 struct ureg shininess = get_material(p, 0, STATE_SHININESS);
1086 struct ureg shininess = get_material(p, 1, STATE_SHININESS);
1102 struct ureg res0 = register_output( p, VARYING_SLOT_COL0 );
1107 struct ureg res1 = register_output( p, VARYING_SLOT_COL1 );
1112 struct ureg res0 = register_output( p, VARYING_SLOT_BFC0 );
1117 struct ureg res1 = register_output( p, VARYING_SLOT_BFC1 );
1129 struct ureg lightprod_front[MAX_LIGHTS][3];
1130 struct ureg lightprod_back[MAX_LIGHTS][3];
1177 struct ureg half = undef;
1178 struct ureg att = undef, VPpli = undef;
1179 struct ureg dist = undef;
1185 struct ureg Ppli = register_param2(p, STATE_LIGHT_POSITION, i);
1186 struct ureg V = get_eye_position(p);
1212 struct ureg eye_hat = get_eye_position_normalized(p);
1219 struct ureg z_dir = swizzle(get_identity_param(p),X,Y,W,Z);
1244 struct ureg material_value = get_material(p, 0, STATE_AMBIENT + j);
1245 struct ureg tmp = get_temp(p);
1251 struct ureg ambient = lightprod_front[i][0];
1252 struct ureg diffuse = lightprod_front[i][1];
1253 struct ureg specular = lightprod_front[i][2];
1254 struct ureg res0, res1;
1311 struct ureg material_value = get_material(p, 1, STATE_AMBIENT + j);
1312 struct ureg tmp = get_temp(p);
1318 struct ureg ambient = lightprod_back[i][0];
1319 struct ureg diffuse = lightprod_back[i][1];
1320 struct ureg specular = lightprod_back[i][2];
1321 struct ureg res0, res1;
1390 struct ureg fog = register_output(p, VARYING_SLOT_FOGC);
1391 struct ureg input;
1395 struct ureg tmp = get_temp(p);
1424 struct ureg dest,
1427 struct ureg normal = get_transformed_normal(p);
1428 struct ureg eye_hat = get_eye_position_normalized(p);
1429 struct ureg tmp = get_temp(p);
1443 struct ureg dest,
1446 struct ureg normal = get_transformed_normal(p);
1447 struct ureg eye_hat = get_eye_position_normalized(p);
1448 struct ureg tmp = get_temp(p);
1449 struct ureg half = register_scalar_const(p, .5);
1450 struct ureg r = get_temp(p);
1451 struct ureg inv_m = get_temp(p);
1452 struct ureg id = get_identity_param(p);
1501 struct ureg out = register_output(p, VARYING_SLOT_TEX0 + i);
1502 struct ureg out_texgen = undef;
1524 struct ureg obj = register_input(p, VERT_ATTRIB_POS);
1525 struct ureg plane =
1534 struct ureg eye = get_eye_position(p);
1535 struct ureg plane =
1566 struct ureg normal = get_transformed_normal(p);
1571 struct ureg in = register_input(p, VERT_ATTRIB_TEX0+i);
1577 struct ureg texmat[4];
1578 struct ureg in = (!is_undef(out_texgen) ?
1607 struct ureg eye = get_eye_position_z(p);
1608 struct ureg state_size = register_param1(p, STATE_POINT_SIZE_CLAMPED);
1609 struct ureg state_attenuation = register_param1(p, STATE_POINT_ATTENUATION);
1610 struct ureg out = register_output(p, VARYING_SLOT_PSIZ);
1611 struct ureg ut = get_temp(p);
1645 struct ureg in = register_input(p, VERT_ATTRIB_POINT_SIZE);
1646 struct ureg out = register_output(p, VARYING_SLOT_PSIZ);