mesa/src/gallium
Keith Whitwell ae3c91e98c draw: Set the backend prim in the pt 'prepare' operation
Leaving it until 'run' is bad as the primitive is pretty much state
for some drivers and so needs to get set early.  In some drivers
this is used to determine things like vertex format, etc -- by the
time we get to 'run', it's too late to change this.
2008-04-02 12:02:32 +01:00
..
auxiliary draw: Set the backend prim in the pt 'prepare' operation 2008-04-02 12:02:32 +01:00
drivers cell: more multi-texture fixes (mostly working now) 2008-04-01 15:42:42 -06:00
include/pipe gallium: add a flag to turn on gl rasterization rules 2008-04-02 11:38:33 +01:00
state_trackers Code reorganization: placeholder for state-trackers. 2008-02-15 17:52:14 +09:00
winsys scons: Fix test for building dri/intel winsys. 2008-04-01 13:05:09 +01:00
Makefile gallium: dummy install target 2008-03-11 19:02:51 -06:00
Makefile.template Remove src/mesa and src/mesa/main from gallium source include paths. 2008-02-19 15:07:53 +09:00
README.portability Some notes about debugging 2008-03-10 21:15:31 +00:00
SConscript gallium: Make scons build gallivm before other auxiliary modules. 2008-03-04 18:30:12 +01:00

	      CROSS-PLATFORM PORTABILITY GUIDELINES FOR GALLIUM3D 


= General Considerations =

The state tracker and winsys driver support a rather limited number of
platforms. However, the pipe drivers are meant to run in a wide number of
platforms. Hence the pipe drivers, the auxiliary modules, and all public
headers in general, should stricly follow these guidelines to ensure


= Compiler Support =

* Include the p_compiler.h.

* Don't use the 'inline' keyword, use the INLINE macro in p_compiler.h instead.

* Cast explicitly when converting to integer types of smaller sizes.

* Cast explicitly when converting between float, double and integral types.

* Don't use named struct initializers.

* Don't use variable number of macro arguments. Use static inline functions
instead.


= Standard Library =

* Avoid including standard library headers. Most standard library functions are
not available in Windows Kernel Mode. Use the appropriate p_*.h include.

== Memory Allocation ==

* Use MALLOC, CALLOC, FREE instead of the malloc, calloc, free functions.

* Use align_pointer() function defined in p_util.h for aligning pointers in a
portable way.

== Debugging ==

* Use the functions/macros in p_debug.h.

* Don't include assert.h, call abort, printf, etc.