Commit graph

23854 commits

Author SHA1 Message Date
Ben Skeggs
40ed449918 nouveau: fix build with libdrm_nouveau 0.6 2009-06-05 14:37:04 +10:00
Ben Skeggs
6b3ca672eb nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws-> 2009-06-05 14:37:03 +10:00
Ben Skeggs
80e9e1ee81 nouveau: move channel creation into pipe drivers 2009-06-05 14:37:03 +10:00
Ben Skeggs
1b207d9bb8 nouveau: call notifier/grobj etc funcs directly
libdrm_nouveau is linked with the winsys, there's no good reason to do all
this through yet another layer.
2009-06-05 14:37:03 +10:00
Ben Skeggs
d4d584b16e nv04: remove u_simple_screen usage 2009-06-05 14:37:02 +10:00
Ben Skeggs
251c47117b nv10: remove u_simple_screen usage 2009-06-05 14:37:02 +10:00
Ben Skeggs
74c45add47 nv20: remove u_simple_screen usage 2009-06-05 14:37:01 +10:00
Ben Skeggs
901d7c3057 nv30: remove u_simple_screen usage 2009-06-05 14:37:01 +10:00
Ben Skeggs
74adb150d5 nv40: remove u_simple_screen usage 2009-06-05 14:37:01 +10:00
Ben Skeggs
bc466be695 nouveau: add pipe_buffer/fence code to pipe drivers, move nv50 over 2009-06-05 14:37:01 +10:00
Ben Skeggs
072fdc1fd3 nouveau: pass nouveau_bo instead of pipe_buffer to so_ calls 2009-06-05 14:37:00 +10:00
Ben Skeggs
04cef8a037 nouveau: call nouveau_pushbuf directly rather than going through nvws 2009-06-05 14:37:00 +10:00
Dan Nicholson
6453605785 osmesa: Link with -ldl for dlopen code
Now that the dlopen wrappers are built into libmesa.a, we need to link
standalone libOSMesa with libdl to resolve dlopen and friends on
platforms that need it.
(cherry picked from commit 4795dd5950)
2009-06-04 19:47:41 -07:00
Dan Nicholson
5df6468589 osmesa: Allow building standalone in all three channel widths
autoconf had been designating the 8 bit libOSMesa as the default
standalone osmesa, but the Makefile expected it to be linked to libGL.
Fix up the osmesa Makefile so that it allows any of the combinations of
standalone and channel width to be built.

Fixes bug #21980.
(cherry picked from commit 7441dcd90b)
2009-06-04 19:47:32 -07:00
Dan Nicholson
4795dd5950 osmesa: Link with -ldl for dlopen code
Now that the dlopen wrappers are built into libmesa.a, we need to link
standalone libOSMesa with libdl to resolve dlopen and friends on
platforms that need it.
2009-06-04 19:45:32 -07:00
Dan Nicholson
7441dcd90b osmesa: Allow building standalone in all three channel widths
autoconf had been designating the 8 bit libOSMesa as the default
standalone osmesa, but the Makefile expected it to be linked to libGL.
Fix up the osmesa Makefile so that it allows any of the combinations of
standalone and channel width to be built.

Fixes bug #21980.
2009-06-04 19:04:36 -07:00
Jakob Bornecrantz
61ffba44fd trace/rbug: Use condvar on system that has it for blocking 2009-06-05 03:01:34 +01:00
Jakob Bornecrantz
d4c578ae41 gallium: Make pipe thread say if it has condvars or not 2009-06-05 02:57:19 +01:00
Alex Deucher
8c27d99eb8 re-arrange state structure
- split out renderbuffers
- split out shaders
- split our viewports

Only send the state needed.
2009-06-04 20:22:14 -04:00
Jakob Bornecrantz
76b3072e9b trace/rbug: Add new contexts functions to trace rbug 2009-06-04 23:45:29 +01:00
Jakob Bornecrantz
384bbe278d rbug: Update rbug protocol with new context calls 2009-06-04 23:45:29 +01:00
Alex Deucher
b591436230 Don't program VGT_OUT_DEALLOC_CNTL/VGT_VERTEX_REUSE_BLOCK_CNTL
These are chip specific and are programmed by the drm.
This should fix hangs on some chips.
2009-06-04 16:57:20 -04:00
Brian Paul
185fbcce36 mesa: call _mesa_ funcs, not gl funcs for debugging 2009-06-04 14:26:51 -06:00
Alex Deucher
4782bebe44 use the float interface for viewport updates 2009-06-04 15:30:37 -04:00
Brian Paul
9d58724c51 Merge branch 'mesa_7_5_branch'
Conflicts:

	src/mesa/main/context.c
2009-06-04 13:16:13 -06:00
Brian Paul
9424d81d18 softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()
Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN.
This is a follow-on to commit a59575d8fb.

(cherry picked from commit 086ecea179)
2009-06-04 13:13:14 -06:00
Brian Paul
6907650211 softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
This fixes incorrect front/back-face orientation.

(cherry picked from commit a64bbdaa3e)
2009-06-04 13:12:13 -06:00
Brian Paul
d37795c453 st/mesa: increase ST_MAX_SHADER_TOKENS to 8k 2009-06-04 13:10:31 -06:00
Brian Paul
45e744dddc tgsi: increase MAX_LABELS to 4096 2009-06-04 13:10:31 -06:00
Brian Paul
81a0ef3f20 mesa: update wglext.h to latest version 2009-06-04 10:30:25 -06:00
Brian Paul
d33c315d9e mesa: remove PFNGL typedefs that are in glext.h 2009-06-04 10:29:44 -06:00
Brian Paul
73a48a8af3 mesa: upgrade glext.h to version 52
A number of the PFNGL* function typedefs are now in glext.h and must be
omitted from the gl.h file.  gl.h will be pruned in the next commit.
2009-06-04 10:27:47 -06:00
Eric Anholt
1ba96651e1 intel: Add support for tiled textures.
This is about a 30% performance win in OA with high settings on my GM45,
and experiments with 915GM indicate that it'll be around a 20% win there.
Currently, 915-class hardware is seriously hurt by the fact that we use
fence regs to control the tiling even for 3D instructions that could live
without them, so we spend a bunch of time waiting on previous rendering in
order to pull fences off.  Thus, the texture_tiling driconf option defaults
off there for now.
2009-06-04 14:00:43 +00:00
Eric Anholt
165ae5e2fb i915: Don't rely on fence regs when we don't have to.
We're on the way to telling the kernel about when we need fence regs on our
objects or not, and this will cut the number of places needing them.
2009-06-04 10:34:52 +00:00
Eric Anholt
1b6f7fb7d5 i915: Remove some long-dead i830 code. 2009-06-04 10:34:52 +00:00
Brian Paul
086ecea179 softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()
Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN.
This is a follow-on to commit a59575d8fb.
2009-06-03 18:33:07 -06:00
Brian Paul
a64bbdaa3e softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
This fixes incorrect front/back-face orientation.
2009-06-03 18:31:55 -06:00
Brian Paul
f25e1007c2 swrast: always do span clipping in _swrast_write_rgba_span()
It's possible for mis-behaving vertex programs to produce vertex data
with very large/NaN values.  This doesn't get handled reliably by the
clipper code so we may try to rasterize triangles that extend beyond
the viewport/window.  Always clip spans to avoid invalid memory accesses
later.
2009-06-03 17:16:00 -06:00
Brian Paul
0b6a0b367f vbo: minor reformatting 2009-06-03 17:16:00 -06:00
Brian Paul
aa18e54ac9 vbo: move/refactor debug code 2009-06-03 17:16:00 -06:00
Brian Paul
13f6d07521 vbo: added debug code to check array data validity (disabled) 2009-06-03 17:16:00 -06:00
Brian Paul
e446ef50eb vbo: new debug/dump code (disabled) 2009-06-03 17:16:00 -06:00
Brian Paul
9200954370 mesa: added NaN checking code (disabled) 2009-06-03 17:16:00 -06:00
Brian Paul
035de6a82b mesa: check/prevent NaN for EX2/LG2 2009-06-03 17:16:00 -06:00
Brian Paul
87b2db988e tnl: updated clip debug code (disabled) 2009-06-03 17:16:00 -06:00
Brian Paul
e7927626c1 mesa: added buffer object debug code (disabled) 2009-06-03 17:16:00 -06:00
Brian Paul
4f4280b435 tnl: add some floating point sanity checks (disabled) 2009-06-03 17:16:00 -06:00
Brian Paul
ab4fd18584 vbo: tweak out-of-bounds VBO access error message
Subtract 1 from _MaxElement to be clearer.
2009-06-03 17:15:59 -06:00
Alex Deucher
e355f1d642 fill in r700ColorMask, cleanup 2009-06-03 15:52:09 -04:00
Alex Deucher
ac274b68d7 start to fill in ShadeModel() 2009-06-03 15:14:44 -04:00