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