mesa/src/gallium
Brian 5e29aab175 gallium: replace draw_convert_wide_points() with draw_wide_point_threshold()
Specifying a threshold size is a bit more flexible, and allows the option
of converting even 1-pixel points to triangles (set threshold=0).

Also, remove 0.25 pixel bias in wide_point().
2008-02-26 14:32:57 -07:00
..
auxiliary gallium: replace draw_convert_wide_points() with draw_wide_point_threshold() 2008-02-26 14:32:57 -07:00
drivers gallium: replace draw_convert_wide_points() with draw_wide_point_threshold() 2008-02-26 14:32:57 -07:00
include/pipe gallium: remove input_map[] from pipe_shader_state 2008-02-26 08:43:07 -07:00
state_trackers Code reorganization: placeholder for state-trackers. 2008-02-15 17:52:14 +09:00
winsys intel_winsys: Fix build failure due to DEBUG_IOCTL being undefined. 2008-02-26 18:48:13 +00:00
Makefile Cleanup depend files. 2008-02-18 15:37:52 +09: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 Code reorganization: move files into their places. 2008-02-15 17:45:40 +09:00
SConscript Revamp scons usage. 2008-02-23 19:49:08 +09: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 ==

TODO