Lines Matching refs:ureg
295 struct ureg {
314 struct ureg eye_position;
315 struct ureg eye_position_z;
316 struct ureg eye_position_normalized;
317 struct ureg transformed_normal;
318 struct ureg identity;
325 static const struct ureg undef = {
341 /* Construct a ureg:
343 static struct ureg make_ureg(GLuint file, GLint idx)
345 struct ureg reg;
356 static struct ureg negate( struct ureg reg )
363 static struct ureg swizzle( struct ureg reg, int x, int y, int z, int w )
373 static struct ureg swizzle1( struct ureg reg, int x )
379 static struct ureg get_temp( struct tnl_program *p )
395 static struct ureg reserve_temp( struct tnl_program *p )
397 struct ureg temp = get_temp( p );
403 static void release_temp( struct tnl_program *p, struct ureg reg )
417 static struct ureg register_param5(struct tnl_program *p,
446 static struct ureg register_input( struct tnl_program *p, GLuint input )
463 static struct ureg register_output( struct tnl_program *p, GLuint output )
470 static struct ureg register_const4f( struct tnl_program *p,
494 static GLboolean is_undef( struct ureg reg )
500 static struct ureg get_identity_param( struct tnl_program *p )
514 struct ureg *matrix )
527 struct ureg reg )
541 struct ureg reg, GLuint mask )
574 struct ureg dest,
576 struct ureg src0,
577 struct ureg src1,
578 struct ureg src2,
636 static struct ureg make_temp( struct tnl_program *p, struct ureg reg )
642 struct ureg temp = get_temp(p);
654 struct ureg dest,
655 const struct ureg *mat,
656 struct ureg src)
670 struct ureg dest,
671 const struct ureg *mat,
672 struct ureg src)
674 struct ureg tmp;
692 struct ureg dest,
693 const struct ureg *mat,
694 struct ureg src)
703 struct ureg dest,
704 struct ureg src )
710 struct ureg tmp = get_temp(p);
723 struct ureg out = register_output(p, output);
728 static struct ureg get_eye_position( struct tnl_program *p )
731 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
732 struct ureg modelview[4];
754 static struct ureg get_eye_position_z( struct tnl_program *p )
760 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
761 struct ureg modelview[4];
775 static struct ureg get_eye_position_normalized( struct tnl_program *p )
778 struct ureg eye = get_eye_position(p);
787 static struct ureg get_transformed_normal( struct tnl_program *p )
798 struct ureg normal = register_input(p, VERT_ATTRIB_NORMAL );
799 struct ureg mvinv[3];
800 struct ureg transformed_normal = reserve_temp(p);
821 struct ureg rescale = register_param2(p, STATE_INTERNAL,
838 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
839 struct ureg hpos = register_output( p, VERT_RESULT_HPOS );
840 struct ureg mvp[4];
878 static struct ureg get_material( struct tnl_program *p, GLuint side,
911 static struct ureg get_scenecolor( struct tnl_program *p, GLuint side )
914 struct ureg lm_ambient = register_param1(p, STATE_LIGHTMODEL_AMBIENT);
915 struct ureg material_emission = get_material(p, side, STATE_EMISSION);
916 struct ureg material_ambient = get_material(p, side, STATE_AMBIENT);
917 struct ureg material_diffuse = get_material(p, side, STATE_DIFFUSE);
918 struct ureg tmp = make_temp(p, material_diffuse);
928 static struct ureg get_lightprod( struct tnl_program *p, GLuint light,
933 struct ureg light_value =
935 struct ureg material_value = get_material(p, side, property);
936 struct ureg tmp = get_temp(p);
945 static struct ureg calculate_light_attenuation( struct tnl_program *p,
947 struct ureg VPpli,
948 struct ureg dist )
950 struct ureg attenuation = register_param3(p, STATE_LIGHT, i,
952 struct ureg att = undef;
957 struct ureg spot_dir_norm = register_param3(p, STATE_INTERNAL,
959 struct ureg spot = get_temp(p);
960 struct ureg slt = get_temp(p);
1009 struct ureg lit,
1010 struct ureg dots )
1012 struct ureg id = get_identity_param(p); /* id = {0,0,0,1} */
1038 struct ureg normal = get_transformed_normal(p);
1039 struct ureg lit = get_temp(p);
1040 struct ureg dots = get_temp(p);
1041 struct ureg _col0 = undef, _col1 = undef;
1042 struct ureg _bfc0 = undef, _bfc1 = undef;
1061 struct ureg shininess = get_material(p, 0, STATE_SHININESS);
1078 struct ureg shininess = get_material(p, 1, STATE_SHININESS);
1094 struct ureg res0 = register_output( p, VERT_RESULT_COL0 );
1099 struct ureg res1 = register_output( p, VERT_RESULT_COL1 );
1104 struct ureg res0 = register_output( p, VERT_RESULT_BFC0 );
1109 struct ureg res1 = register_output( p, VERT_RESULT_BFC1 );
1120 struct ureg half = undef;
1121 struct ureg att = undef, VPpli = undef;
1122 struct ureg dist = undef;
1129 struct ureg Ppli = register_param3(p, STATE_INTERNAL,
1131 struct ureg V = get_eye_position(p);
1157 struct ureg eye_hat = get_eye_position_normalized(p);
1165 struct ureg z_dir = swizzle(get_identity_param(p),X,Y,W,Z);
1185 struct ureg ambient = get_lightprod(p, i, 0, STATE_AMBIENT);
1186 struct ureg diffuse = get_lightprod(p, i, 0, STATE_DIFFUSE);
1187 struct ureg specular = get_lightprod(p, i, 0, STATE_SPECULAR);
1188 struct ureg res0, res1;
1240 struct ureg ambient = get_lightprod(p, i, 1, STATE_AMBIENT);
1241 struct ureg diffuse = get_lightprod(p, i, 1, STATE_DIFFUSE);
1242 struct ureg specular = get_lightprod(p, i, 1, STATE_SPECULAR);
1243 struct ureg res0, res1;
1312 struct ureg fog = register_output(p, VERT_RESULT_FOGC);
1313 struct ureg input;
1346 struct ureg dest,
1349 struct ureg normal = get_transformed_normal(p);
1350 struct ureg eye_hat = get_eye_position_normalized(p);
1351 struct ureg tmp = get_temp(p);
1365 struct ureg dest,
1368 struct ureg normal = get_transformed_normal(p);
1369 struct ureg eye_hat = get_eye_position_normalized(p);
1370 struct ureg tmp = get_temp(p);
1371 struct ureg half = register_scalar_const(p, .5);
1372 struct ureg r = get_temp(p);
1373 struct ureg inv_m = get_temp(p);
1374 struct ureg id = get_identity_param(p);
1423 struct ureg out = register_output(p, VERT_RESULT_TEX0 + i);
1424 struct ureg out_texgen = undef;
1446 struct ureg obj = register_input(p, VERT_ATTRIB_POS);
1447 struct ureg plane =
1456 struct ureg eye = get_eye_position(p);
1457 struct ureg plane =
1488 struct ureg normal = get_transformed_normal(p);
1493 struct ureg in = register_input(p, VERT_ATTRIB_TEX0+i);
1499 struct ureg texmat[4];
1500 struct ureg in = (!is_undef(out_texgen) ?
1529 struct ureg eye = get_eye_position_z(p);
1530 struct ureg state_size = register_param2(p, STATE_INTERNAL, STATE_POINT_SIZE_CLAMPED);
1531 struct ureg state_attenuation = register_param1(p, STATE_POINT_ATTENUATION);
1532 struct ureg out = register_output(p, VERT_RESULT_PSIZ);
1533 struct ureg ut = get_temp(p);
1567 struct ureg in = register_input(p, VERT_ATTRIB_POINT_SIZE);
1568 struct ureg out = register_output(p, VERT_RESULT_PSIZ);