Commit Graph

24906 Commits

Author SHA1 Message Date
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
Brian Paul 101c2f907e mesa: simplify glPushAttrib() list building code 2009-08-08 07:30:26 -06:00
Brian Paul 924ba48499 mesa: remove old, prototype code 2009-08-08 07:30:26 -06:00
Brian Paul b153340351 swrast: replace GLenum, GLint with GLbitfield for buffer vars 2009-08-08 07:30:26 -06:00
Brian Paul 4482f96c59 mesa: use _mesa_bufferobj_mapped() 2009-08-08 07:30:26 -06:00
Corbin Simpson 10b9d9f895 r300g: Knock out another fragment of invariant state.
Colorbuffer setup will always happen.
2009-08-07 20:50:42 -07:00
Corbin Simpson 847fcb645c gallium: Move minify() to u_math.
minify() is usually used in mipmap size calculation. Strangely enough,
we all defined it as MAX2(1, d >> 1); imagine that. :3
2009-08-07 20:50:42 -07:00
Corbin Simpson c58133b81a r300g: Remove r300_constant_buffer::user_count.
Not needed with new compiler.
2009-08-07 20:50:42 -07:00
Eric Anholt a962c07cc3 Revert "i965: Disable texture tiling by default."
This reverts commit b8e638d489.

Now that the known hangs and misrendering issues are fixed, I'm ready to
start encouraging it by default again.
2009-08-07 18:33:08 -07:00
Eric Anholt ceb8afcca5 intel: Align region height as required for tiled regions.
Otherwise, we would address beyond the end of our buffers.  Fixes reliable
GPU segfault with texture_tiling=true and oglconform shadow.c.

Bug #22406.
2009-08-07 18:33:08 -07:00
Eric Anholt 12c6973c6e i965: Add a note justifying domain choice for the SF VP. 2009-08-07 18:33:08 -07:00
Eric Anholt b82abaabee intel: Add some more safety asserts in the blit code. 2009-08-07 18:33:08 -07:00