Commit graph

115447 commits

Author SHA1 Message Date
Thomas Henn
bbda892c55 windows: new VC8 projects statically linked against libcmt 2009-01-20 09:07:01 -07:00
Karl Schultz
61a387dca1 windows: more VC8 project file updates
Make some compiler flags per-file.
Remove driverfuncs.c from osmesa project.
2009-01-20 09:07:01 -07:00
Dave Airlie
d9c4a01bad r200: make tri render on my r200. 2009-01-21 01:40:33 +10:00
Dave Airlie
04029e5ddb r200: tri runs without crashing - doesn't draw anything 2009-01-20 22:59:34 +10:00
Dave Airlie
ed3a1cce73 r200: clear is working at least - not much else 2009-01-20 22:51:04 +10:00
José Fonseca
5897383344 gallium: Remove the standalone surfaces.
This commit is mostly just a cosmetic change that cleans-up the interfaces,
replacing pipe_winsys::surface_* calls by

   /**
    * Allocate storage for a display target surface.
    *
    * Often surfaces which are meant to be blitted to the front screen (i.e.,
    * display targets) must be allocated with special characteristics, memory
    * pools, or obtained directly from the windowing system.
    *
    * This callback is invoked by the pipe_screenwhen creating a texture marked
    * with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag  to get the underlying
    * buffer storage.
    */
   struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws,
                                        unsigned width, unsigned height,
                                        enum pipe_format format,
                                        unsigned usage,
                                        unsigned *stride);

Most drivers were updated but not all were tested. Use the softpipe pipe
driver and the xlib winsys changes as a reference when fixing other drivers.
2009-01-20 12:22:49 +00:00
Thomas Hellstrom
437fa85ba3 Add a comment about _tnl_emit_indexed_vertices_to_buffer. 2009-01-20 11:40:51 +01:00
Thomas Hellstrom
b00477acf3 tnl: Add a utility to emit indexed vertices to a DMA buffer.
This utility is useful for hardware that doesn't support HW index buffers.
It's a bit inefficient but appears to give a substantial performance gain,
as we can emit tri strips that would otherwise be split into triangles.
2009-01-20 11:15:57 +01:00
Thomas Hellstrom
7374285f07 Fix store texel for argb4444. 2009-01-20 11:13:38 +01:00
Thomas Hellstrom
5c84a1032c Fix store texel for argb8888_rev. 2009-01-20 11:13:05 +01:00
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