Commit graph

22853 commits

Author SHA1 Message Date
Thomas Hellstrom
dbda49a9e6 Add RGBA4444 and RGBA5551 texture formats. 2009-01-20 11:12:17 +01:00
Thomas Hellstrom
11351f0c8a dri1: Add a macro to validate two dri drawables in one go.
Dri drivers often may validate first a write drawable and then a read
drawable ("readable"). However, the hardware lock may be unlocked when
validating the readable, causing the write drawable status to be stale.

Drivers should use this macro instead when validating two drawables.
2009-01-20 11:07:10 +01:00
Brian Paul
a5b5bc9f95 mesa: fix build of stand-alone glslcompiler driver 2009-01-19 17:50:44 -07:00
Keith Whitwell
ecc563b17f xlib: fix dependencies 2009-01-19 20:03:42 +00:00
Brian Paul
2fa407be8b statetracker: copy back color buffer to front buffer when needed
Fixes front-buffer rendering when following a SwapBuffers.
See progs/tests/rubberband.c
2009-01-19 12:55:35 -07:00
Brian Paul
b9a3952f8f gallium: minor reformatting 2009-01-19 12:55:35 -07:00
Keith Whitwell
bc0e00ad42 util: add reduced prim helper 2009-01-19 19:44:12 +00:00
Brian Paul
f97792421b tests: test pseudo-XOR blend mode.
GL_XOR logicop mode can be approximated with blending by computing 1 - dst.
Here's a couple test programs for that.
2009-01-19 12:09:40 -07:00
Brian Paul
ba3a879b1c gallium: use align() intead of round_up() 2009-01-19 11:51:23 -07:00
Brian Paul
1907135235 tgsi: change an if to an else-if, added const qual, added comments 2009-01-19 08:51:58 -07:00
Alan Hourihane
396711b840 dri: add fake front definitions 2009-01-19 15:41:19 +00:00
Alan Hourihane
d3866f026a dri: add fake front definitions 2009-01-19 15:40:30 +00:00
Thomas Henn
dbd8e4066b windows: updated VC8 project files 2009-01-19 08:23:22 -07:00
Keith Whitwell
41b99b0070 Merge commit 'origin/gallium-0.2' into gallium-xlib-rework
Conflicts:

	src/gallium/state_trackers/glx/xlib/fakeglx.c
	src/gallium/state_trackers/glx/xlib/xm_api.c
	src/gallium/winsys/xlib/xmesaP.h
2009-01-19 10:32:35 +00:00
Keith Whitwell
ea55b62f37 xlib: fix compilation after xmesa header moves 2009-01-19 10:29:27 +00:00
Keith Whitwell
b5db6b039c Merge commit 'origin/gallium-0.2' into gallium-xlib-rework 2009-01-19 10:15:04 +00:00
Younes Manton
76753e3078 g3dvl: Some cleanups. 2009-01-18 21:40:11 -05:00
Younes Manton
9ddca0b41d g3dvl: Ref count everywhere. 2009-01-18 21:40:11 -05:00
Younes Manton
3933d338f7 g3dvl: Mark all buffers for incoming frame data as discardable. 2009-01-18 21:40:11 -05:00
Younes Manton
7309e80578 nouveau: Rename buffer on map if discardable, busy, and write-only. 2009-01-18 21:40:10 -05:00
Younes Manton
0521c2682a gallium: Add PIPE_BUFFER_USAGE_DISCARD.
When passed to map() signals that the buffer's previous contents are
not required, allowing the driver to allocate a new buffer if the
current buffer can not be mapped immediately.
2009-01-18 21:40:10 -05:00
Younes Manton
11f91936f2 g3dvl: Return BadAlloc if we can't create an XvMC surface. 2009-01-18 21:40:10 -05:00
Younes Manton
c35dc4a741 g3dvl: Follow mesa naming conventions for src dirs. 2009-01-18 21:40:10 -05:00
Jakob Bornecrantz
1fd411539b egl: eglinfo load i915 driver 2009-01-19 02:29:54 +01:00
Jakob Bornecrantz
a835eb930d i915: Build gem and egl winsys by default 2009-01-19 02:24:29 +01:00
Jakob Bornecrantz
353f824379 i915: Make gem submit commands 2009-01-19 02:22:34 +01:00
Jakob Bornecrantz
e082923af6 egl: Fix swap and creation of front buffer 2009-01-19 02:00:35 +01:00
Brian Paul
b7f802eca2 glx: gcc 2.95 build fix (move declaration before code)
Adapted from patch by Matthieu Herbb <matthieu.herrb@laas.fr>
2009-01-18 10:00:34 -07:00
Jakob Bornecrantz
df3ef7a8d6 i915: Use new egl state_tracker 2009-01-18 15:50:15 +01:00
Jakob Bornecrantz
7047f1755f egl: Add a egl state_tracker that use Gallium
This works on top Gallium and KMS. The only thing that
	does not work currently is swap buffers for shown mesa
	screens. So the only fun thing this will produce is a
	white screen.

	The driver wishing to us the state_tracker needs to
	implement the intrace as define in drm_api.h located
	in gallium/include/state_tracker. And also have a
	working KMS implementation.
2009-01-18 15:40:12 +01:00
Jakob Bornecrantz
a874cf37ee i915: Update gem backend a bit 2009-01-18 15:35:50 +01:00
Jakob Bornecrantz
94ddd621d1 egl: Make eglscreen sleep for five seconds 2009-01-18 13:40:24 +01:00
Jakob Bornecrantz
b6b619c6ff egl: Add eglscreen to help debug egl mesa screen 2009-01-18 05:14:01 +01:00
Jakob Bornecrantz
a5df724c52 egl: Make eglinfo print screen info 2009-01-17 20:50:00 +01:00
Keith Whitwell
8f3fac6107 debug: add noprefix version of debug_dump_enum 2009-01-17 18:45:20 +00:00
Keith Whitwell
bcc45a2024 xlib: don't explicitly create the pipe_winsys struct 2009-01-17 17:12:30 +00:00
Keith Whitwell
4f134f91a4 xlib: don't explicitly create the pipe_winsys struct 2009-01-17 17:06:14 +00:00
Brian Paul
a61a1a8181 i965: fix polygon culling bug when rendering to a texture/FBO
Since we use an inverted viewport transformation for render to texture, that
inverts front/back polygon orientation.
Now glCullFace(GL_FRONT / GL_BACK) works correctly.
2009-01-16 13:33:19 -07:00
Brian Paul
345a08a77f intel: added intel_rendering_to_texture() helper function.
When we're rendering to textures we have to invert the viewport transformation.
This helper cleans up that test and can be used elsewhere...
2009-01-16 13:31:04 -07:00
Brian Paul
12c6d28cc7 mesa: remove GL_DEPTH_TEST + no depth buffer test
One could enable depth testing before binding an FBO that has a depth buffer
so this test is no longer useful or correct.
2009-01-16 13:25:41 -07:00
Alan Hourihane
2e28c1fda2 Merge commit 'origin/master' into gallium-0.2
Conflicts:
	src/mesa/shader/slang/slang_compile.c
2009-01-16 16:44:53 +00:00
Brian Paul
e442fe5ba5 glsl: fix broken sampler assignments 2009-01-16 09:30:58 -07:00
José Fonseca
47ca0234dc scons: Use -std=gnu99
It a scary world out there: people use all sort of non standard C stuff,
and we must enable support for that in here in order to build.

-pedantic still warn us when we use that nonstandard though.
2009-01-16 15:16:55 +00:00
José Fonseca
eac69bf99e stw: Dispatch to our stw_winsys::flush_front_buffer
pipe_winsys::flush_front_buffer should die someday, but this is good enough
for now.
2009-01-16 15:16:55 +00:00
Xiang, Haihao
66a4f5cf9a i915: fallback on transfer mode 2009-01-16 16:06:33 +08:00
Karl Schultz
a740858fc0 windows: updated VC8 project file 2009-01-15 11:32:47 -07:00
Karl Schultz
e7c988d065 windows: updated mesa.def file 2009-01-15 07:05:31 -07:00
Brian Paul
4a8356209d glsl: use _mesa_sprintf() 2009-01-15 07:05:30 -07:00
Brian Paul
e1ba29ea19 glsl: move declaration before code 2009-01-15 07:05:30 -07:00
Alan Hourihane
abd280ab0b mesa: tweak to formatting 2009-01-15 14:02:09 +00:00