Brian Paul
0528d6c704
gallium/glx/xlib: rename glxapi.c to glx_getproc.c
2009-08-12 10:32:22 -06:00
Brian Paul
f546fa00aa
gallium/glx/xlib: don't include fakeglx.h
2009-08-12 10:32:22 -06:00
Brian Paul
4a4039e199
gallium/glx/xlib: overhaul and simplification of the Gallium Xlib-based GLX
...
The old GLX dispatch table stuff isn't needed (same story for the Mesa/Xlib
driver). The intention of that code was being able to switch on the fly
between the real GLX library and the fake/Xlib-based emulation. That hasn't
been used in a long time.
Next up: some file renaming.
2009-08-12 10:32:22 -06:00
Cooper Yuan
1e52b8b4e0
r600: A shader is bound that exports Z as a float into Red channel
2009-08-12 17:39:18 +08:00
Chia-I Wu
64e7bb3262
egl: Use _eglAddAtExitCall to free thread infos and displays.
...
Thread infos and displays are usually not freed by applications. This
commit add atexit calls to free them.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
435c7ac24d
egl: Add _eglAddAtExitCall.
...
Add a convenient wrapper to register atexit calls. Add mutex to
_eglGlobal along the way.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
0e3687e33d
egl: Make _eglGlobal initialize statically.
...
Now that display and surface hash tables are moved out, _eglGlobal can
be initialized statically.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
413969a920
egl: Implement _eglFiniDisplay.
...
_eglFiniDisplay is called at exit time to free allocated displays. It
is, however, not used right now.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
621801abd2
egl: Make display and surface hash tables local.
...
Move display and surface hash tables to egldisplay.c, and have them
initialized on demand.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
56d2119280
egl: Initialize current thread management on demand.
...
Current thread management was initialized in _eglInitGlobals, which is
called only in eglGetDisplay. Since EGL does not require eglGetDisplay
to be called first, the initialization is better to be done on demand.
_eglFiniCurrent is removed, as it is not called at all.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
f6c2f5e379
egl: Destroy eglThreadInfo on thread exit.
...
This is done through pthread TSD destructor. It destroys all thread
infos except for main thread's. The thread info of the main thread is
destroyed by _eglFiniCurrent.
TLS case is not supported yet.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
Chia-I Wu
e79d21ca1f
egl: Add eglmutex.h.
...
The implementation uses pthread mutex when available. Otherwise, it is
no-op.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11 22:14:35 -06:00
RALOVICH, Kristóf
50f8ca2344
glx: fix signedness warning
2009-08-11 22:14:35 -06:00
Brian Paul
fd90d8000c
mesa: handle glDrawPixels images which are larger than max rect texture size
2009-08-11 20:34:22 -06:00
Brian Paul
dba6d52ba0
mesa: added _mesa_meta_draw_pixels()
2009-08-11 20:34:21 -06:00
Brian Paul
f821866360
mesa: added META_FOG and optimize some meta_begin/end() code
2009-08-11 20:34:21 -06:00
Brian Paul
9ba19b892c
gallium/trace: remove stray semicolons
2009-08-11 20:34:21 -06:00
Brian Paul
b681f396e6
gallium/xlib: add missing tex_usage parameter
2009-08-11 20:34:21 -06:00
Brian Paul
6deaa6d4b1
gallium/egl: add missing tex_usage parameter
2009-08-11 20:34:21 -06:00
Brian Paul
2e8be3ab79
gallium/xlib: add missing tex_usage parameter
2009-08-11 20:34:21 -06:00
Brian Paul
26a762c2f6
gallium/identity: remove stray semicolons
2009-08-11 20:34:21 -06:00
Alex Deucher
c2b29b5df5
r600: use the drm ioctls for swap and texture upload
...
NOTE: THIS REQUIRES AN UPDATED DRM!
2009-08-11 22:21:26 -04:00
Jakob Bornecrantz
164d8e8701
i915g: Reduce max relocs
2009-08-12 03:58:38 +02:00
Jakob Bornecrantz
df9f27822e
i915g: Check relocs as well
2009-08-12 03:58:37 +02:00
Jakob Bornecrantz
7a60ed2015
i915g: Implement surface_buffer_create for softpipe
...
In order to run softpipe on st/xorg we need this function
2009-08-11 18:37:09 +01:00
Jakob Bornecrantz
a41a253ce3
gallium: Add texture usage information to surface_buffer_create
...
We need aditional meta data about the usage of the surface
in softpipe because we need to be able tell the diffrence
between PRIMARY and DISPLAY_TARGET surfaces.
2009-08-11 18:34:43 +01:00
Brian Paul
7013a4dfb8
mesa/glapi: regenerated files from gl_API.xml
2009-08-11 10:00:02 -06:00
Brian Paul
bb45e6f07b
gallium: fix debug_printf() format string
2009-08-11 09:30:12 -06:00
Brian Paul
a9d37f6837
glut: fix incorrect Vista maximisation size due to WM_GETMINMAXINFO handling
...
See bug 23182.
2009-08-11 08:54:25 -06:00
Brian Paul
20e4421fe3
mesa: remove _mesa_set_vp_override() from _mesa_Bitmap()
...
This reverts part of commit 2c9812e3d3
.
The calls to _mesa_set_vp_override() were causing extra state validation
and caused the gallium state tracker's bitmap cache to get flushed on
every call.
2009-08-11 08:38:51 -06:00
Michel Dänzer
e93be5132c
r300g: Fix up remaining VAP_CNTL_STATUS writes for big endian.
2009-08-11 09:16:48 +02:00
Michel Dänzer
bb91368003
r300g: Emit relocations for pitch registers.
...
Fixes CS failures with tiling enabled kernels.
2009-08-11 09:13:12 +02:00
Cooper Yuan
2cbd3fce8f
r300g: a typo of debug message
2009-08-11 14:39:58 +08:00
Cooper Yuan
2ccd66d8a0
r600: update num of interp if posizition is used
2009-08-11 14:36:01 +08:00
Eric Anholt
74504c48ad
demos: Fix the VBO usage in glsl/multitex.
...
The fix for 965 to be noisy when apps sent pointers instead of VBO offsets
caught this app in the act of doing exactly that.
Bug #23203
2009-08-10 15:53:47 -07:00
Brian Paul
16a1f68c39
intel: use new _mesa_meta_copy_pixels() function
...
glCopyPixels() no longer hits a software fallback when zooming, blending, etc.
2009-08-10 15:48:02 -06:00
Brian Paul
edb991b7bc
mesa: save/restore texture matrix in meta code
...
Also, save/restore viewport and texture state in _mesa_meta_copy_pixels()
2009-08-10 15:44:05 -06:00
Brian Paul
2ad10c966c
mesa: for meta blit, check max texture size, use glCopyTexSubImage2D() when possible
2009-08-10 15:09:38 -06:00
Brian Paul
c16fa388d3
mesa: initial meta implementation of glCopyPixels()
2009-08-10 15:09:38 -06:00
Brian Paul
36a222cf04
mesa: remove debug flush call
2009-08-10 14:15:56 -06:00
Brian Paul
0109e1b9f3
intel: add missing \n to fprintf()
2009-08-10 13:58:56 -06:00
Brian Paul
8cb389ce35
intel: use new _mesa_meta_blit_framebuffer() function
...
The previous version of framebuffer blit was a quick hack. The new meta
version works pretty well.
2009-08-10 13:55:32 -06:00
Brian Paul
33a838beb9
mesa: new driver meta-ops module
...
Implement glClear() in terms of quad rendering, implement glBlitFramebuffer()
in terms of glCopyTexImage2D + textured quad, etc.
There have been several places in the drivers where we've implemented
meta rendering similar to this. This is an effort to do it in a more
portable and more efficient form.
The _mesa_meta_begin/end() functions act like glPush/PopAttrib() but are
lighter-weight. Plus, _mesa_meta_begin() resets GL state back to default
values (texturing off, identity vertex transform, etc) so the meta drawing
functions don't have to worry about it.
For now only _mesa_mesa_blit_framebuffer() and _mesa_meta_clear() are
implemented. glDrawPixels() and glCopyPixels() would be the next candidates.
2009-08-10 13:55:31 -06:00
Brian Paul
e9d9dab0cd
mesa: added GLcontext::Meta field for meta rendering state
2009-08-10 13:55:31 -06:00
Dave Airlie
b4c9569715
radeon_fbo: switch short to byte for 565
2009-08-10 19:58:11 +10:00
Dave Airlie
e0c9157671
radeon: fix cut-n-paste in alphabits in fbo code
2009-08-10 10:10:13 +10:00
Pauli Nieminen
11038989c1
egl: Add depend and depend.bak to clean target
...
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-09 08:42:50 -06:00
Dave Airlie
728da99737
r600: looks like a typo
2009-08-09 20:46:12 +10:00
Cooper Yuan
b2927a6204
r600: load per-pixel position into PS in order to use fragment.position.
...
This patch can fix /progs/fp/tri-depth, tri-depth2, tri-depthwrite,
tri-depthwrite2 and point-position.
2009-08-09 12:18:40 +08:00
Brian Paul
483a7916d1
mesa: update framebuffer status as needed in _mesa_source/dest_buffer_exists()
2009-08-08 07:30:26 -06:00