Lines Matching refs:ureg

289 struct ureg {
309 struct ureg eye_position;
310 struct ureg eye_position_z;
311 struct ureg eye_position_normalized;
312 struct ureg transformed_normal;
313 struct ureg identity;
320 static const struct ureg undef = {
336 /* Construct a ureg:
338 static struct ureg make_ureg(GLuint file, GLint idx)
340 struct ureg reg;
350 static struct ureg negate( struct ureg reg )
357 static struct ureg swizzle( struct ureg reg, int x, int y, int z, int w )
367 static struct ureg swizzle1( struct ureg reg, int x )
373 static struct ureg get_temp( struct tnl_program *p )
389 static struct ureg reserve_temp( struct tnl_program *p )
391 struct ureg temp = get_temp( p );
397 static void release_temp( struct tnl_program *p, struct ureg reg )
411 static struct ureg register_param4(struct tnl_program *p,
437 static struct ureg register_input( struct tnl_program *p, GLuint input )
454 static struct ureg register_output( struct tnl_program *p, GLuint output )
461 static struct ureg register_const4f( struct tnl_program *p,
485 static GLboolean is_undef( struct ureg reg )
491 static struct ureg get_identity_param( struct tnl_program *p )
504 struct ureg *matrix )
517 struct ureg reg )
530 struct ureg reg, GLuint mask )
560 struct ureg dest,
562 struct ureg src0,
563 struct ureg src1,
564 struct ureg src2,
620 static struct ureg make_temp( struct tnl_program *p, struct ureg reg )
626 struct ureg temp = get_temp(p);
638 struct ureg dest,
639 const struct ureg *mat,
640 struct ureg src)
654 struct ureg dest,
655 const struct ureg *mat,
656 struct ureg src)
658 struct ureg tmp;
676 struct ureg dest,
677 const struct ureg *mat,
678 struct ureg src)
687 struct ureg dest,
688 struct ureg src )
690 struct ureg tmp = get_temp(p);
702 struct ureg out = register_output(p, output);
707 static struct ureg get_eye_position( struct tnl_program *p )
710 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
711 struct ureg modelview[4];
733 static struct ureg get_eye_position_z( struct tnl_program *p )
739 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
740 struct ureg modelview[4];
754 static struct ureg get_eye_position_normalized( struct tnl_program *p )
757 struct ureg eye = get_eye_position(p);
766 static struct ureg get_transformed_normal( struct tnl_program *p )
777 struct ureg normal = register_input(p, VERT_ATTRIB_NORMAL );
778 struct ureg mvinv[3];
779 struct ureg transformed_normal = reserve_temp(p);
800 struct ureg rescale = register_param1(p, STATE_NORMAL_SCALE);
816 struct ureg pos = register_input( p, VERT_ATTRIB_POS );
817 struct ureg hpos = register_output( p, VARYING_SLOT_POS );
818 struct ureg mvp[4];
870 static struct ureg get_material( struct tnl_program *p, GLuint side,
903 static struct ureg get_scenecolor( struct tnl_program *p, GLuint side )
906 struct ureg lm_ambient = register_param1(p, STATE_LIGHTMODEL_AMBIENT);
907 struct ureg material_emission = get_material(p, side, STATE_EMISSION);
908 struct ureg material_ambient = get_material(p, side, STATE_AMBIENT);
909 struct ureg material_diffuse = get_material(p, side, STATE_DIFFUSE);
910 struct ureg tmp = make_temp(p, material_diffuse);
920 static struct ureg get_lightprod( struct tnl_program *p, GLuint light,
925 struct ureg light_value =
937 static struct ureg calculate_light_attenuation( struct tnl_program *p,
939 struct ureg VPpli,
940 struct ureg dist )
942 struct ureg attenuation = register_param3(p, STATE_LIGHT, i,
944 struct ureg att = undef;
949 struct ureg spot_dir_norm = register_param2(p, STATE_LIGHT_SPOT_DIR_NORMALIZED, i);
950 struct ureg spot = get_temp(p);
951 struct ureg slt = get_temp(p);
1001 struct ureg lit,
1002 struct ureg dots )
1004 struct ureg id = get_identity_param(p); /* id = {0,0,0,1} */
1030 struct ureg normal = get_transformed_normal(p);
1031 struct ureg lit = get_temp(p);
1032 struct ureg dots = get_temp(p);
1033 struct ureg _col0 = undef, _col1 = undef;
1034 struct ureg _bfc0 = undef, _bfc1 = undef;
1053 struct ureg shininess = get_material(p, 0, STATE_SHININESS);
1070 struct ureg shininess = get_material(p, 1, STATE_SHININESS);
1086 struct ureg res0 = register_output( p, VARYING_SLOT_COL0 );
1091 struct ureg res1 = register_output( p, VARYING_SLOT_COL1 );
1096 struct ureg res0 = register_output( p, VARYING_SLOT_BFC0 );
1101 struct ureg res1 = register_output( p, VARYING_SLOT_BFC1 );
1113 struct ureg lightprod_front[MAX_LIGHTS][3];
1114 struct ureg lightprod_back[MAX_LIGHTS][3];
1158 struct ureg half = undef;
1159 struct ureg att = undef, VPpli = undef;
1160 struct ureg dist = undef;
1166 struct ureg Ppli = register_param2(p, STATE_LIGHT_POSITION, i);
1167 struct ureg V = get_eye_position(p);
1193 struct ureg eye_hat = get_eye_position_normalized(p);
1200 struct ureg z_dir = swizzle(get_identity_param(p),X,Y,W,Z);
1225 struct ureg material_value = get_material(p, 0, STATE_AMBIENT + j);
1226 struct ureg tmp = get_temp(p);
1232 struct ureg ambient = lightprod_front[i][0];
1233 struct ureg diffuse = lightprod_front[i][1];
1234 struct ureg specular = lightprod_front[i][2];
1235 struct ureg res0, res1;
1292 struct ureg material_value = get_material(p, 1, STATE_AMBIENT + j);
1293 struct ureg tmp = get_temp(p);
1299 struct ureg ambient = lightprod_back[i][0];
1300 struct ureg diffuse = lightprod_back[i][1];
1301 struct ureg specular = lightprod_back[i][2];
1302 struct ureg res0, res1;
1371 struct ureg fog = register_output(p, VARYING_SLOT_FOGC);
1372 struct ureg input;
1376 struct ureg tmp = get_temp(p);
1405 struct ureg dest,
1408 struct ureg normal = get_transformed_normal(p);
1409 struct ureg eye_hat = get_eye_position_normalized(p);
1410 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);
1430 struct ureg half = register_scalar_const(p, .5);
1431 struct ureg r = get_temp(p);
1432 struct ureg inv_m = get_temp(p);
1433 struct ureg id = get_identity_param(p);
1482 struct ureg out = register_output(p, VARYING_SLOT_TEX0 + i);
1483 struct ureg out_texgen = undef;
1505 struct ureg obj = register_input(p, VERT_ATTRIB_POS);
1506 struct ureg plane =
1515 struct ureg eye = get_eye_position(p);
1516 struct ureg plane =
1547 struct ureg normal = get_transformed_normal(p);
1552 struct ureg in = register_input(p, VERT_ATTRIB_TEX0+i);
1558 struct ureg texmat[4];
1559 struct ureg in = (!is_undef(out_texgen) ?
1588 struct ureg eye = get_eye_position_z(p);
1589 struct ureg state_size = register_param1(p, STATE_POINT_SIZE_CLAMPED);
1590 struct ureg state_attenuation = register_param1(p, STATE_POINT_ATTENUATION);
1591 struct ureg out = register_output(p, VARYING_SLOT_PSIZ);
1592 struct ureg ut = get_temp(p);
1626 struct ureg in = register_input(p, VERT_ATTRIB_POINT_SIZE);
1627 struct ureg out = register_output(p, VARYING_SLOT_PSIZ);