ioq3quest/code/renderergl1
Simon McVittie 5909b9a1cf Isolate the Altivec code so non-Altivec PPC targets can use the same binary.
Moved all the code using Altivec intrinsics to separate files. This 
means we can optionally use GCC's -maltivec on just these files, which
are chosen at runtime if the CPU supports Altivec, and compile the rest
without it, making a single binary that has Altivec optimizations but
can still work on G3.

Unlike SSE and similar extensions on x86, there does not seem to be
a way to enable conditional, targeted use of Altivec based on runtime
detection (which is what ioquake3 wants to do) without also giving the
compiler permission to use Altivec in code generation; so to not crash
on CPUs that do not implement Altivec, we'll have to turn it off
altogether, except in translation units that are only entered when
runtime Altivec detection is successful.

This has been tested on Linux PPC (on an Altivec-enabled CPU),
but we may need further work after testing trickles out to other
PowerPC devices and ancient Mac OS X builds.

I did a little work on this patch, but the majority of the effort belongs 
to Simon McVittie (thanks!).
2018-05-12 14:14:47 -04:00
..
tr_altivec.c Isolate the Altivec code so non-Altivec PPC targets can use the same binary. 2018-05-12 14:14:47 -04:00
tr_animation.c Allow more than 32 surfaces in skin files 2017-07-04 14:06:09 -05:00
tr_backend.c Correct spelling mistakes. 2017-11-22 01:40:20 -06:00
tr_bsp.c Use standard offsetof facility. Dereferencing a null pointer results 2018-01-21 06:01:50 -06:00
tr_cmds.c Replace 4 with sizeof( int ) in R_GetCommandBufferReserved 2015-10-17 21:58:11 -05:00
tr_curve.c renderer -> renderergl1, rend2 -> renderergl2 2013-02-15 23:46:37 +00:00
tr_flares.c Fix flares being invisible after vid_restart 2013-11-09 16:57:58 -06:00
tr_image.c OpenGL1: Use glGenTextures instead of hardcoded values 2018-03-13 09:17:23 -05:00
tr_init.c Add common OpenGL version parsing + OpenGL 3 fixes 2017-10-01 23:09:20 -05:00
tr_light.c Correct spelling mistakes. 2017-11-22 01:40:20 -06:00
tr_local.h Isolate the Altivec code so non-Altivec PPC targets can use the same binary. 2018-05-12 14:14:47 -04:00
tr_main.c Only draw cm_patch/bot debug polygons in world scenes 2017-10-08 07:18:40 -05:00
tr_marks.c OpenGL1: Decay float[8] to float * in tr_marks.c 2018-04-08 21:41:31 -05:00
tr_mesh.c Allow more than 32 surfaces in skin files 2017-07-04 14:06:09 -05:00
tr_model.c Make R_LerpTag return qfalse if MDR tag does not exist 2014-05-06 21:10:16 -05:00
tr_model_iqm.c Allow more than 32 surfaces in skin files 2017-07-04 14:06:09 -05:00
tr_scene.c Fix floating point precision loss in renderer [part 2] 2017-08-03 00:14:22 -05:00
tr_shade.c Isolate the Altivec code so non-Altivec PPC targets can use the same binary. 2018-05-12 14:14:47 -04:00
tr_shade_calc.c Isolate the Altivec code so non-Altivec PPC targets can use the same binary. 2018-05-12 14:14:47 -04:00
tr_shader.c Correct spelling mistakes. 2017-11-22 01:40:20 -06:00
tr_shadows.c Fix stencil shadows not drawing if has 500 or more vertexes 2014-11-16 21:21:30 -06:00
tr_sky.c Explicitly set cull type for skybox 2016-05-16 03:17:03 -05:00
tr_subs.c renderer -> renderergl1, rend2 -> renderergl2 2013-02-15 23:46:37 +00:00
tr_surface.c Isolate the Altivec code so non-Altivec PPC targets can use the same binary. 2018-05-12 14:14:47 -04:00
tr_world.c Fix undefined behavior when shifting left by 32. 2016-09-07 16:56:23 -07:00