Commit graph

140 commits

Author SHA1 Message Date
Michal Krol
6f548c88e2 gallium: Allow pipe format component sizes to be specified
with finer granularity.

This will allow us to define A2R10G10B10 format.
2008-06-13 14:50:29 +02:00
José Fonseca
2fed8d8496 gallium: Support L16 pixel format. 2008-06-12 10:56:19 +09:00
José Fonseca
23422d603a gallium: Implement debug_get_num_option.
For numeric options.
2008-06-12 10:56:04 +09:00
José Fonseca
a70684bf25 gallium: Deprecate GETENV. Replace by debug_get_bool_option.
debug_get_bool_option will interpret "n", "no", "0", "f", or
"false" as FALSE; and everything else as TRUE. The default value
(used when the variable is not set) is received as a parameter.
2008-06-10 08:33:21 +09:00
Jonathan White
fe1a2d1fff egl: assorted fixes for Windows
Note that int32_t is typedef'd both in p_compiler.h and eglplatform.h
2008-06-05 15:07:03 -06:00
Michal Krol
43b92a6424 gallium: Define PIPE_CAP_GUARD_BAND_* capabilities. 2008-06-04 11:42:26 +01:00
José Fonseca
e0860518df gallium: Replace XSTDCALL by PIPE_CDECL. 2008-06-02 22:31:02 +09:00
José Fonseca
5027411134 gallium: More tweaks for the cosf/sinf logic. 2008-06-02 21:43:31 +09:00
José Fonseca
acdf24e530 gallium: Fix log<->cos typo in logf. 2008-06-02 20:28:50 +09:00
José Fonseca
9b50043ea9 gallium: Hopefully fix the cosf/sinf/etc. conditional compolation logic for good. 2008-06-02 19:46:18 +09:00
José Fonseca
275fc32d58 gallium: Identify each Windows platform individually from scons. 2008-06-02 19:46:18 +09:00
Michal Krol
837d49a84e gallium: The SWZ opcode no longer aliases MOV.
Also, when the extended swizzle token is used, the simple swizzle
and negate are set to X,Y,Z,W and FALSE, respectively.
2008-06-02 11:34:56 +02:00
Michal Krol
4e33edfd06 gallium: Refactor TGSI decalaration tokens.
* Incorporate declaration_interpolation into declaration itself.
* Remove declaration_mask -- always use declaration_range.
2008-05-31 18:56:20 +02:00
Michal Krol
9046d1acfa gallium: Fix preprocessor logic. 2008-05-31 18:40:00 +02:00
José Fonseca
054189e87a gallium: MSVC 8.0 already defines the cosf, sinf, etc. 2008-05-31 18:55:40 +09:00
Jakob Bornecrantz
3869c3c87a Merge branch 'gallium-tex-surfaces' into gallium-0.1
Conflicts:

	src/gallium/drivers/i915simple/i915_context.h
2008-05-30 13:46:18 +02:00
José Fonseca
ae10775b73 gallium: Provide the INT64_C/UINT64_C macros.
"long long" types and 1234LL constants are not supported by eVC.
2008-05-30 03:33:06 +09:00
Keith Whitwell
82605d7bcd draw: draw_range_elements trial 2008-05-29 11:48:04 +01:00
Keith Whitwell
7fd6cd9af3 Merge branch 'gallium-vertex-linear' into gallium-tex-surfaces 2008-05-28 13:33:09 +01:00
Jakob Bornecrantz
938d9d5963 Merge branch 'gallium-vertex-linear' into gallium-0.1
Conflicts:

	src/gallium/auxiliary/draw/draw_pt_varray.c
2008-05-28 12:42:42 +02:00
José Fonseca
55d29a8d48 gallium: Windows CE portability fixes. 2008-05-28 16:13:24 +09:00
José Fonseca
26f34dcff2 gallium: Autodetect WINCE. 2008-05-28 01:24:26 +09:00
Jakob Bornecrantz
e3ddafd1d3 Merge branch 'gallium-tex-surface' into gallium-0.1
Conflicts:

	src/gallium/include/pipe/p_util.h
2008-05-26 13:04:25 +02:00
José Fonseca
345eb7fb70 gallium: Poor-man profiler for win32 kernel. 2008-05-24 19:25:33 +09:00
Jakob Bornecrantz
a3dbd412df Merge branch 'gallium-i915-current' into gallium-0.1 2008-05-23 16:26:14 +02:00
Keith Whitwell
9343779a8c gallium: define PIPE_CDECL calling convention, which really is cdecl everywhere 2008-05-23 09:16:55 +01:00
José Fonseca
5ca4f9e97c gallium: Additional formats for bump mapping. 2008-05-19 15:01:17 +09:00
Brian Paul
54fbd8bbd4 Merge branch 'gallium-0.1' into gallium-tex-surfaces 2008-05-18 16:17:50 -06:00
Brian Paul
718a2d8c7a gallium: remove deprecated format names 2008-05-17 08:47:56 -06:00
José Fonseca
c7ad942c54 gallium: Propagate tex_usage flags down to winsys. 2008-05-07 14:17:59 +09:00
José Fonseca
fe06a47361 gallium: New PIPE_TEXTURE_USAGE_PRIMARY flag for primary surfaces. 2008-05-07 14:14:48 +09:00
José Fonseca
a6ad492774 gallium: Simple facility to dump and view images for debugging. 2008-05-07 04:51:55 +09:00
Keith Whitwell
09e6be9b57 Merge commit 'origin/gallium-0.1' into gallium-tex-surfaces
Conflicts:

	src/mesa/state_tracker/st_atom_sampler.c
	src/mesa/state_tracker/st_cb_texture.c
2008-05-06 07:45:28 +01:00
José Fonseca
6361d6f48d gallium: New pipe_screen interface to overlay a texture on existing memory. 2008-05-06 14:57:18 +09:00
Keith Whitwell
8e6a380798 gallium: add pipe surface layout value (Roland Scheidegger) 2008-05-03 15:41:05 +01:00
Brian Paul
07aaf3a7a7 gallium: remove obsolete PIPE_CAP_BITMAP_TEXCOORD_BIAS 2008-05-02 14:00:08 -06:00
Keith Whitwell
b2021e7c06 gallium: identify depth-stencil textures
And don't use the display-target path to allocate them.
2008-05-02 17:56:01 +01:00
Keith Whitwell
a73ae3d5eb gallium: Add texture usage flags, special-case allocation of display targets
For many envirionments it's necessary to allocate display targets
in a window-system friendly manner.  Add facilities so that a driver
can tell if a texture is likely to be used to generate a display surface
and if use special allocation paths if necessary.

Hook up softpipe to call into the winsys->surface_alloc_storage()
routine in this case, though we probably want to change that interface
slightly also.
2008-05-02 16:46:31 +01:00
Keith Whitwell
4a15913208 gallium: remove usage of winsys->surface_alloc_storage from state tracker
Allocate a texture containing storage instead.

Also clean up ACCUM buffer allocation slightly -- drivers will need
some changes to texture allocation logic to accomodate the concept of
a texture that will only as image storage by the CPU, but it's cleaner
than it was.
2008-05-02 14:27:10 +01:00
Keith Whitwell
731e7b961c re-add pipe_surface map/unmap inlines 2008-05-02 11:11:27 +01:00
Keith Whitwell
b59f9c95c1 gallium: add information to surface to identify which texture image it is pointing at 2008-05-01 12:28:59 +01:00
Keith Whitwell
c9ed86a964 gallium: tex surface checkpoint 2008-05-01 12:00:45 +01:00
Brian Paul
8d45576ec5 gallium: rename old PIPE_FORMAT_U_I8 with PIPE_FORMAT_I8_UNORM, etc.
Now all the packed color types are consistantly named.
Added temporary #defines for the old names until all drivers are updated.
2008-04-30 16:51:52 -06:00
Brian Paul
bd5b99d389 gallium: fix typo: s/custam/custom/ 2008-04-30 15:29:32 -06:00
José Fonseca
cafb545721 d3d: Windows miniport driver portability fixes. 2008-05-01 02:25:23 +09:00
Brian Paul
15318c8d8e gallium: new pipe_buffer alloc/map/unmap/ref wrappers 2008-04-30 10:43:09 -06:00
Zack Rusin
0d80f407f1 silence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types 2008-04-29 17:21:10 -04:00
Brian Paul
fce5951b56 gallium: declare pipe_format enum to silence warnings 2008-04-29 14:39:42 -06:00
Keith Whitwell
9bfe1a3d50 gallium: add debug_print_format() make it easier to print format error messages 2008-04-29 20:48:14 +01:00
Brian Paul
aad9dd14d8 gallium: tweak comments, minor var renaming 2008-04-25 16:27:52 -06:00