Commit graph

31250 commits

Author SHA1 Message Date
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 551c96979e)
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 c1a4f249f1)
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 7c34c237a2)
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
Francisco Jerez
f455ca6490 st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME).
So far the frontbuffer was only being flushed on st_glFlush and
st_glFinish, however, a co-state tracker may need to make sure that
any frontbuffer changes are already on its way to the actual front.

The dri2 state tracker will need this for event-driven GL applications
to resize properly (It could also be done calling "dri_flush_frontbuffer",
but that way we would flush unnecessarily in the double-buffered case).

Additionally this patch avoids flushing the mesa rendering cache if
PIPE_FLUSH_RENDER_CACHE wasn't specified.
2010-02-17 23:15:48 +01:00
Ian Romanick
7ccbeb41ac Merge commit '381d5e209815235911c4aab516037c868c8f695f'
This merges the patches from the series "[PATCH 00/14] More
client-side GLX house cleaning" that were posted to the mesa3d-dev
mailing list.  See
http://marc.info/?l=mesa3d-dev&m=126582985214612&w=2

Patches 01 through 04 eliminate a bunch of annoying warnings that I
get when building Mesa.

Patch 05 fixes an inconsistency between the implementation of
glXSwapIntervalMESA and the spec.  I chose to favor the code over the
spec in this case.  This also eliminated a warning.

Patches 06 through 12 clean up the way that context creation is
performed on the client.  When support for GLX_SGIX_fbconfig and the
related GLX 1.3 functions was added, I refactored a bunch
nuts-and-bolts of context creation to CreateContext.  The refactor was
a good idea, I just didn't do it right.

Patches 13 and 14 update glxgears_fbconfig to use GLX 1.3 interfaces.
2010-02-17 11:40:38 -08:00
Brian Paul
0583c29313 progs/demos: update GL version test to accept GL 3.x 2010-02-17 09:02:33 -07:00
Brian Paul
5b392ff49a glsl/apps: print usage info if insufficient args 2010-02-17 08:59:02 -07:00
Brian Paul
6b4a553dd3 st/mesa: replace conditional with assertion
Core Mesa will not call ctx->Driver.CheckQuery() if the Ready flag
is already set.
2010-02-17 08:29:01 -07:00
Chia-I Wu
f4542477cf progs/openvg: Add .gitignore.
Add all OpenVG demos to .gitignore.
2010-02-17 22:32:10 +08:00
Chia-I Wu
915d60dcf5 progs/es1: Update .gitignore.
Add xegl/bindtex to .gitignore.
2010-02-17 22:32:10 +08:00
Keith Whitwell
0c938143db llvmpipe: use ffs technique for full tiles also
Need to compute two masks here for full and partial 16x16 blocks.
Gives a further good improvement for isosurf particularly:

isosurf  97 -> 108
gears   597 -> 611
2010-02-17 12:12:41 +00:00
Chia-I Wu
e16f577142 docs: Update TODOs of egl.html.
Thread-safety is no longer a TODO item.  There are surely bugs to be
fixed though.
2010-02-17 20:00:12 +08:00
Chia-I Wu
4afe24808e egl: Revisit global data locking.
Lock the global mutex in _eglPreloadDrivers and _eglAllocScreenHandle.
Add comments to why certain pathes do not need locking.
2010-02-17 20:00:12 +08:00
Chia-I Wu
655f465467 egl: Always lock a display before using it.
This gives a simple access control to the display.  It is potentially
slow, but a finer grained mutex can always be used in the future.  The
benefit of this simple approach is that drivers need not to worry about
thread-safety.
2010-02-17 20:00:12 +08:00
Chia-I Wu
db5ce8b384 egl: Make eglGetDisplay atomic.
Merge _eglNewDisplay and _eglLinkDisplay into _eglFindDisplay.  Remove
unused _eglUnlinkDisplay.
2010-02-17 20:00:12 +08:00
Chia-I Wu
99bcb1f06d egl: Add a mutex to _EGLDisplay.
A display may be shared by multiple threads.  Add a mutex for access
control.
2010-02-17 20:00:11 +08:00
Chia-I Wu
b3bb180620 egl: eglGetError should return the status of the last call.
Use macros to record the status of the function call before returning.
This is the only way that eglGetError can return the status of the most
recent function call.
2010-02-17 20:00:11 +08:00
Chia-I Wu
3dee01a692 egl: Always record error code.
The error code denotes the success or failure of the most recent
function call.  A call to _eglError should always update the error code.
2010-02-17 20:00:11 +08:00
Chia-I Wu
aed7358e54 egl: Use new error checking macros.
Replace all uses of _EGL_DECLARE_* and _eglCheck* by _EGL_CHECK_*.
2010-02-17 20:00:11 +08:00
Chia-I Wu
f3e03e1277 egl: Add new error checking macros.
Add _EGL_CHECK_* which will replace _EGL_DECLARE_* for error checking.
Move _eglCheck* earlier in the file so that the macros and the functions
are grouped together.
2010-02-17 20:00:10 +08:00
Keith Whitwell
31c816731e llvmpipe: rework do_block_16 to use bitmasks and ffs
Some nice speedups:
   gears:  547 -> 597
   isosurf: 83 -> 98

Others like gloss unchanged.  Could do further work in this direction.
2010-02-17 11:12:04 +00:00
Michal Krol
cb66e9f2b4 glsl/pp: Remove sl_pp_get_extension_state().
Parse extension tokens to track current state of extension enables.
2010-02-17 11:22:01 +01:00
Michal Krol
27a68bd14a glsl/cl: Parse layout qualifiers only when an appropriate extension enabled. 2010-02-17 11:21:59 +01:00
Michal Krol
a21215a74e glsl/cl: Properly emit layout qualifier list. 2010-02-17 11:21:58 +01:00
Vinson Lee
ba0ac64f06 glsl: Silence unused value warning. 2010-02-17 02:10:49 -08:00
Vinson Lee
7eaf33ad03 progs/redbook: Fix memory leaks on error paths. 2010-02-17 01:57:14 -08:00
Johannes Obermayr
41b19c279a nouveau: fix legacy dri driver build 2010-02-17 16:16:50 +10:00
Brian Paul
de5928a615 sl/pp: re-do extension testing code
The #extension directive should not effect which extension preprocessor
symbols are defined/undefined; only whether/how the compiler accepts
language features defined by the extension.
2010-02-16 10:43:36 -07:00
Francisco Jerez
f7aea808a4 nv40: Fix incorrect so_new() numbering. 2010-02-16 18:37:43 +01:00