Commit graph

24126 commits

Author SHA1 Message Date
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
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
091fcf3a27 Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"
This reverts commit 5d75124db4.
2009-06-03 19:53:53 -06:00
Brian Paul
ab6508e399 mesa: fix parity error for tri strips with 1st provoking vertex 2009-06-03 19:52:32 -06:00
Brian Paul
8b875b732f tnl: fix first provoking vertex case for unfilled triangles 2009-06-03 19:03:27 -06: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
1f1aa0c20c tnl: fix first provoking vertex bug for line loops 2009-06-03 17:28:31 -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
Alex Deucher
ada26c4059 dump command buffer 2009-06-03 14:29:06 -04:00
Alex Deucher
f5d479d7f5 Clean up scissor and viewport code
Switch to common functions where applicable
2009-06-03 14:19:26 -04:00
Ian Romanick
1ad1576836 Thank you git for doing the right thing. 2009-06-03 17:55:42 +01:00
Ian Romanick
c428f467b6 Fix compiling indirect.c when GLX_DIRECT_RENDERING is not defined
DO NOT HAND-EDIT GLX PROTOCOL FILES.  Seriously.  How can you miss the giant
comment at the top of the file?
2009-06-03 17:53:40 +01:00
Ian Romanick
7f8000db8b Fast path when rebinding the same texture in single context environment
If there is no shared context, there is no purpose in rebinding the same
texture.  In some artificial tests this improves performance 10% - 30%.
2009-06-03 17:50:37 +01:00
Brian Paul
54576130a8 st/mesa: minor clean-ups, reformatting, etc 2009-06-02 21:46:17 -06:00
Brian Paul
dd174ea215 st/mesa: implement/enable GL_ARB_copy_buffer extension 2009-06-02 21:35:11 -06:00
Brian Paul
2813c08b35 mesa: fix error test mistake in _mesa_CopyBufferSubData() 2009-06-02 21:35:11 -06:00
Brian Paul
3a7399e2c4 mesa: enable GL_ARB_copy_buffer for software drivers 2009-06-02 21:35:11 -06:00
Brian Paul
08e43ebfb2 mesa: plug in new _mesa_CopyBufferSubData() functions 2009-06-02 21:35:11 -06:00
Brian Paul
dc0b71f00d mesa: _mesa_CopyBufferSubData() function, and driver fall-back 2009-06-02 21:35:11 -06:00
Brian Paul
96a30b06db mesa: new state for GL_ARB_copy_buffer 2009-06-02 21:35:10 -06:00
Brian Paul
76b438878e mesa: new CopyBufferSubData() driver hook 2009-06-02 21:35:10 -06:00
Brian Paul
751977075f glapi: regenerated files for GL_ARB_copy_buffer 2009-06-02 21:35:10 -06:00
Brian Paul
68892872ef glapi: include ARB_copy_buffer.xml 2009-06-02 21:35:09 -06:00
Brian Paul
4a1e4f9881 glapi: GL_ARB_copy_buffer xml info 2009-06-02 21:35:09 -06:00
José Fonseca
273117ceed util: Unsaved change missing from last commit. 2009-06-02 16:41:45 -07:00
Alex Deucher
116f40a1c4 Disable clear code for now 2009-06-02 19:23:16 -04:00
Alex Deucher
b55d0dd3ba fix an overflow in SPI_VS_OUT_CONFIG
VS must always export at least 1 param.
2009-06-02 19:20:24 -04:00
Joakim Sindholt
45b77830eb r300-gallium: strip swtcl to the bare minimum
This was originally taken from i915 and it shows.
Basically most the stuff in r300_render.c was never needed and
shouldn't have worked in the first place
2009-06-02 22:23:17 +02:00
José Fonseca
840af5fd62 util: Support Z24S8/Z24X8 -> unsigned conversion. 2009-06-02 11:46:53 -07:00