Commit graph

31302 commits

Author SHA1 Message Date
Vinson Lee
71e3abc014 st/xlib: Add assert to check for null pointer dereference. 2010-02-20 16:23:44 -08:00
Jon TURNEY
e3114d3f0f Cygwin build fix: Fix linkage
Fix the way we make static convenience libraries, such as libmesa.a,
to be the same as linux etc.

Putting archives inside archives doesn't make the objects inside
the archive linkable, so use expand_archives() to get all the objects
inside an archive out again before linking.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-20 09:24:15 -07:00
Vinson Lee
1613735d08 gamma: Silence uninitialized variable warnings. 2010-02-20 02:29:43 -08:00
Vinson Lee
fdcad8a583 gamma: Add missing headers. 2010-02-20 02:25:29 -08:00
Vinson Lee
fbf04cef71 gamma: Remove unnecessary header. 2010-02-20 02:02:17 -08:00
Vinson Lee
b76164dced intel: Silence compiler format warnings. 2010-02-20 01:58:27 -08:00
Vinson Lee
6cfdb61f73 progs/redbook: Silence warn_unused_result warnings. 2010-02-20 01:34:16 -08:00
Vinson Lee
5fd84e0246 tgsi: ifdef out unused function micro_sqrt. 2010-02-20 00:56:32 -08:00
Vinson Lee
a45f2ec7b7 mesa: Silence compiler format warning. 2010-02-19 23:53:27 -08:00
Brian Paul
150cce6aef mesa: fix snprintf() typo 2010-02-19 13:44:12 -07:00
Brian Paul
78a0c353d0 mesa: restore _mesa_snprintf() - it's needed for Windows
This reverts part of commit 298be2b028
2010-02-19 12:56:49 -07:00
Brian Paul
8de5a292f7 mesa: casts to silence new warnings from printf() 2010-02-19 12:45:49 -07:00
Brian Paul
984b72ad5f mesa: remove abs/negate from fetch_vector1ui()
This function is only used for the NV unpack instructions.
Negate/abs make no sense and removing the code fixes Windows
compiler warnings.  Found by Karl Schultz.
2010-02-19 12:43:47 -07:00
Kristian Høgsberg
da43aa84c8 intel: Set buffer stamp before getting new buffers
This way, if we get an invalidate as we update the buffers, we
don't clobber the drawable stamp and ignore the invalidate.

Pointed-out-by: Francisco Jerez
2010-02-19 14:12:27 -05:00
Marek Olšák
f0c50345d1 r300g: fix rendering into the L8 and A8 texture formats
RB3D_COLORPITCH.COLORFORMAT.I8 stores the C2 component.
2010-02-19 20:02:41 +01:00
Kristian Høgsberg
99ae9e8d7d Drop macro wrappers for the aligned memory functions 2010-02-19 13:30:22 -05:00
Brian Paul
3ef51b4bd9 progs/tests: new zbitmap.c test to exercize Z testing of glBitmap 2010-02-19 11:12:20 -07:00
Brian Paul
e9df31fac9 progs/demos: sort filenames 2010-02-19 11:09:05 -07:00
Michal Krol
f814a497f7 tgsi: Make more exec opcodes look pretty. 2010-02-19 19:02:35 +01:00
Michal Krol
f1f7006d1f tgsi: Change prototypes of micro opcodes to explicitly indicates number of args. 2010-02-19 19:02:31 +01:00
Michal Krol
d68f024b7d tgsi: Rewrite exec implementations of NRM and NRM4. 2010-02-19 19:02:26 +01:00
Kristian Høgsberg
298be2b028 Replace the _mesa_*printf() wrappers with the plain libc versions 2010-02-19 12:32:24 -05:00
Kristian Høgsberg
32f2fd1c5d Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions 2010-02-19 12:03:01 -05:00
Brian Paul
6bf1ea897f mesa: replace _mesa_bzero() with memset() 2010-02-19 08:32:36 -07:00
Brian Paul
2240ba10f3 mesa: replace old MEMSET macro with memset 2010-02-19 08:12:31 -07:00
Brian Paul
e197de56cd mesa: replace old MEMCPY macro with memcpy 2010-02-19 08:09:01 -07:00
Kenneth Graunke
2efa86ea30 Remove _mesa_memcmp in favor of plain memcmp.
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19 09:19:20 -05:00
Kenneth Graunke
26f8fad145 Remove _mesa_memset in favor of plain memset.
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19 09:18:57 -05:00
Kenneth Graunke
c7ac486261 Remove _mesa_memcpy in favor of plain memcpy.
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19 09:18:36 -05:00
Kenneth Graunke
60b0cae412 Remove _mesa_atoi in favor of plain atoi. 2010-02-19 09:18:13 -05:00
Kenneth Graunke
9d9afe9393 Remove _mesa_strncmp in favor of plain strncmp. 2010-02-19 09:17:53 -05:00
Kenneth Graunke
8d73aa6d1a Remove _mesa_strcmp in favor of plain strcmp. 2010-02-19 07:53:04 -05:00
Kenneth Graunke
21d0c70b4b Remove _mesa_strlen in favor of plain strlen. 2010-02-19 07:51:02 -05:00
Kenneth Graunke
f69d1d1438 Remove _mesa_strncpy in favor of plain strncpy. 2010-02-19 07:50:40 -05:00
Kenneth Graunke
5fcaa78912 Remove _mesa_strcpy in favor of plain strcpy. 2010-02-19 07:50:22 -05:00
Kenneth Graunke
8ff7624653 Remove _mesa_strncat in favor of plain strncat. 2010-02-19 07:49:45 -05:00
Kenneth Graunke
0aecdb6383 Remove _mesa_strstr in favor of plain strstr. 2010-02-19 07:47:48 -05:00
Corbin Simpson
71214c640c Revert "r300g: remove L8_UNORM from colorbuffer formats"
This reverts commit fc427d2343.

At least xorg uses this, and just because something is not used in
OpenGL is *never* a valid reason to remove functionality from Gallium.
If something lacks a test, go add a test, don't remove features.
2010-02-19 03:12:14 -08:00
Vinson Lee
e95948ea03 gamma: s#colormac.h#main/colormac.h# 2010-02-19 00:51:21 -08:00
Vinson Lee
24bdace350 gamma: s/gammacontext.h/gamma_context.h/ 2010-02-19 00:44:17 -08:00
Chia-I Wu
496724b869 egl: Silence warnings when compiled with -pedantic.
Just follow gcc's advices here.
2010-02-19 12:40:01 +08:00
Chia-I Wu
bef4b476d7 egl: Silence warnings in check/return macros.
The macros give warnings when compiled with -pedantic.  This commit is
based on a patch by Brian Paul, with minor changes to add do {} while(0)
and rename the check macros.
2010-02-19 12:34:18 +08:00
Marek Olšák
fc427d2343 r300g: remove L8_UNORM from colorbuffer formats
Not renderable in OpenGL anyway.
2010-02-19 04:24:01 +01:00
Brian Paul
ae7a7026c7 softpipe: fix depth testing problems
The optimized Z-test functions assumed that the array of incoming quads
are adjacent, but that's not always true.  The fragment shader can cull
intermediate quads, for example.

Now these Z-test functions can cope with non-adjacent quads.  A little bit
of performance is probably lost, but it's probably not worth worring about.

This fixes broken glBitmap() Z testing, among other things.

(cherry picked from commit d437d905e6)
2010-02-18 17:00:10 -07:00
Brian Paul
0c728030ed st/mesa: added some bitmap debug code (disabled) 2010-02-18 16:58:39 -07:00
Brian Paul
86bf224cac progs/demos: update arbocclude.c to do multiple queries at once
Issue a whole bunch of queries then get the results and render.
Draw the test object in red instead of orange if the result was not
ready when we first queried it.
2010-02-18 16:58:38 -07:00
Brian Paul
00d1d8aad3 softpipe: comments and whitespace fixes 2010-02-18 16:58:38 -07:00
Brian Paul
46b5ae7169 softpipe: const qualifiers, comments 2010-02-18 16:58:38 -07:00
Jakob Bornecrantz
2ecdc2ecec identity: Propagate api->name and api->driver_name up 2010-02-18 23:17:48 +00:00
Jakob Bornecrantz
288e4b15e0 trace: Propagate api->name up 2010-02-18 23:17:48 +00:00