Commit Graph

31276 Commits

Author SHA1 Message Date
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 d437d905e6924ebc05ec9efe87e1e2c48d75bc13)
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
Jakob Bornecrantz 1ee905bc47 pipebuffer: Include fenced buffer manager in build 2010-02-18 23:17:47 +00:00
Jesse Barnes 0032525242 i915: update render buffers at prepare_render time
We need to do this before we emit any state dependent on the current
render buffers.
2010-02-18 14:59:06 -08:00
Dan Nicholson 79cc455cb8 Revert "Make mklib propogate all errors"
This reverts commit d6f55492af.

It's both not portable and not safe to trap & exit on ERR. This will
need to use a more invasive approach that tests return code only for
selected, important commands.
2010-02-18 14:48:53 -08:00
Brian Paul cc66847c10 mklib: remove unused -contents_of_archives(), add comments 2010-02-18 13:02:59 -07:00
Brian Paul b69dad2921 mesa: silence mklib output for libglapi.c as for other targets 2010-02-18 12:54:28 -07:00
Jon TURNEY d6f55492af Make mklib propogate all errors
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-18 12:47:01 -07:00
Brian Paul 205c9659cf mklib: Teach mklib to fail build if link fails on cygwin
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>

(cherry picked from commit 551c96979e643b409535afe868c42cac0d2285ad)
2010-02-18 12:46:48 -07:00
Brian Paul 979889038e configure: PTHREADS should be defined on cygwin, as well
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>

(cherry picked from commit c1a4f249f18a766488da0832fbf6700de93af2f8)
2010-02-18 12:46:12 -07:00
Brian Paul a61dce3639 swrast: fix left side clipping
Fixes bug 26623.  Original patch was submitted by Mathias Frohlich
and modified by Brian.

(cherry picked from commit 7c34c237a2f6732b2c013543523617e375c1f534)
2010-02-18 09:40:38 -07:00
Francisco Jerez 196214bf2b Revert "st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME)."
We probably don't want to propagate this condition to the pipe driver,
this reverts commit f455ca6490 and the
dri_update_buffer flush altogether until an agreement is reached.
2010-02-18 14:04:14 +01:00
Kristian Høgsberg 0aa6105711 intel: Include main/hash.h using "" instead of <> 2010-02-18 07:49:55 -05:00
Vinson Lee 82e5a11077 progs/trivial: Update .gitignore. 2010-02-18 01:24:20 -08:00
Vinson Lee 7f7b7b9a02 progs/redbook: Fix array out-of-bounds access. 2010-02-18 01:17:26 -08:00
Keith Whitwell 37e955d491 st/mesa: always call FLUSH_CURRENT before st->pipe->flush()
Undoes part of commit f455ca6 which would permit pipe->flush() to be
called while the VBO module still had its buffers mapped.  Some
drivers care deeply about this.  Sorry for not spotting this earlier.
2010-02-18 09:03:36 +00:00
Vinson Lee 64d18b819b progs/rbug: Silence printf format warning. 2010-02-17 23:22:51 -08:00
Vinson Lee 869896f162 progs/rbug: Add missing headers. 2010-02-17 23:19:24 -08:00
Vinson Lee 9f5640d10b util: Fix typo of debug_dump_float_rgba_bmp. 2010-02-17 23:10:13 -08:00
Vinson Lee 8266f1e5a5 progs/rbug: Use util_format_name(). 2010-02-17 22:55:16 -08:00
Vinson Lee 20a11722a2 progs/rbug: Add missing header. 2010-02-17 22:10:04 -08:00
Vinson Lee 56b7a6f632 progs/rbug: s/read/rbug_read/
read conflicts with read in /usr/include/unistd.h.
2010-02-17 21:50:38 -08:00
Vinson Lee 3f7af84405 svga: Silence uninitialized variable warnings. 2010-02-17 21:39:24 -08:00
Marek Olšák ca0e88ce92 r300g: add support for all missing non-FP sampler formats
The idea is to directly parse the format description in
r300_translate_texformat and return ~0 if the format is unsupported.
2010-02-18 06:37:43 +01:00
Chia-I Wu 9a939adf7d winsys/drm: Do not use --whole-archive in Makefile.egl.
--whole-archive is not portable.  Have the drivers reference _eglMain as
a poor man's --whole-archive.
2010-02-18 13:07:01 +08:00
Kristian Høgsberg d449627829 intel: Implement the DRI2 invalidate function properly
This uses a stamp mechanisms to mark the DRI drawable as invalid.
Instead of immediately updating the buffers we just bump the drawable
stamp and call out to DRI2GetBuffers "later".

"Later" used to be at LOCK_HARDWARE time, and this patch brings back
callouts at the points where we used to call LOCK_HARDWARE.  A new function,
intel_prepare_render(), is called where we used to call LOCK_HARDWARE,
and if the buffers are invalid, we call out to DRI2GetBuffers there.

This lets us invalidate buffers only when notified instead of on
every glViewport() call.  If the loader calls the DRI invalidate
entrypoint, we disable viewport triggered buffer invalidation.

Additionally, we can clean up the old viewport mechanism a bit,
since we can just invalidate the buffers and not worry about
reentrancy and whatnot.
2010-02-17 21:53:16 -05:00
Francisco Jerez 56dcd011b5 dri/nouveau: Some multithreaded rendering fixes. 2010-02-17 23:36:29 +01:00
Francisco Jerez 52e3f0949d st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation. 2010-02-17 23:15:48 +01:00