Commit graph

24975 commits

Author SHA1 Message Date
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
Eric Anholt
9f981ec27d i965: Replace the subroutine-skipping jump in VS with a NOP if it's a NOP.
This showed a 1.9% (+/-.3%, n=3) improvement in OA performance with high
geometry settings.
2009-08-07 18:33:08 -07:00
Jakob Bornecrantz
7de5e60c18 i915g: Don't forget x/y coords in transfers
Fixes demos/ray.
2009-08-08 03:20:24 +02:00
Jakob Bornecrantz
738e02c3c8 i915g: Don't try to free a mapped buffer at shutdown 2009-08-08 03:19:01 +02:00
Alex Deucher
f7474a577d radeon: correct fix for tiling with the legacy build 2009-08-07 17:36:07 -04:00
Eric Anholt
a2a3d8d7f0 intel: Fix googleearth by avoiding GL_VIEWPORT_BIT in meta clear push/pop
I have no idea why this fixes things, but being more efficient sounds good
anyway.  Fixes regression in 99d07d0f91
where most of the lit half of the world was not drawn.
2009-08-07 14:04:11 -07:00
Alex Deucher
caf4f0ede7 radeon: fix the build with older drm headers 2009-08-07 16:20:26 -04:00
Pauli Nieminen
0d7fafa0ed dri: Fix problems with unitialized values in dri screen object.
This fixes crash in r200 KMS driver when pSAREA was set to 1 randomly because of memory wasn't cleared.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-07 13:48:26 -06:00
Brian Paul
9de26ccbcc util: fix incorrect assertion
Check that the dest surface/format is renderable.
2009-08-07 13:48:26 -06:00
Brian Paul
f36d012191 util: include u_surface.h, added comment 2009-08-07 13:48:26 -06:00
Brian Paul
513a82cb1b util: use util_same_surface() to compare surface pointers 2009-08-07 13:48:26 -06:00
Brian Paul
abb120fe5b util: added util_same_surface() helper function 2009-08-07 13:48:26 -06:00
Robert Ellison
2caec748ad tests: have getprocaddress return a return code
These minor changes allow getprocaddress to return an error code
in the case of test failure.  This allows the program to be integrated
into the piglit test suite.
2009-08-07 12:23:19 -06:00
Robert Ellison
99d5139078 mesa: improve getprocaddress test
- Allow the getprocaddress test to test extensions not supported by
  Mesa.  The original getprocaddress.py script only included OpenGL
  extension functions that were in Mesa dispatch tables.  Now all
  known extension functions (as detailed in gl_API.xml) are included.
  As the test does not link against any extension function symbols
  (i.e. it uses glXGetProcAddress() for all extension functions),
  it still compiles and links against Mesa; but now the same
  binary can be used to test extensions not yet supported by Mesa.

- Extend the list of tested extension functions.  The last revision
  of this test exercised 16 extension functions; this revision adds
  support for 95 more.
2009-08-07 12:06:17 -06:00
Pauli Nieminen
d80b36f64f dri: Fix problems with unitialized values in dri screen object.
This fixes crash in r200 KMS driver when pSAREA was set to 1 randomly because of memory wasn't cleared.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-07 11:24:47 -06:00
Brian Paul
1359d69f11 st/mesa: remove redundant calls to _mesa_set_vp_override()
Called from core Mesa now.
2009-08-07 10:49:38 -06:00
Brian Paul
c02b38d169 progs/xdemos: added multictx.c (multi-context rendering demo)
Create one window and render into it with two GLX contexts.  Setup the
rendering state differently for each context to be sure there's no state
"bleeding" between contexts.
2009-08-07 09:52:18 -06:00
Brian Paul
2c9812e3d3 mesa: use _mesa_set_vp_override() in glDraw/CopyPixels and glBitmap
We don't use the vertex program in these functions and the driver may
install its own.  This fixes the broken glCopyPixels swrast fallback in
i965 and possibly other drivers.  In particular, glCopyPixels sometimes
didn't work because the fixed-function fragment program was replacing all
fragment colors with the current raster color.
2009-08-07 09:51:50 -06:00
Brian Paul
6807d96f8e mesa: reformat code to allow setting breakpoints on the true-statement 2009-08-07 09:50:38 -06:00
Brian Paul
84e67330e1 glxgears: make functions static, update comments 2009-08-07 09:50:38 -06:00
Brian Paul
7bf6efe780 mesa: use _mesa_bufferobj_mapped() 2009-08-07 09:50:38 -06:00
Brian Paul
67153a4518 mesa: new _mesa_bufferobj_mapped() helper function 2009-08-07 09:50:38 -06:00
Brian Paul
f738b913e6 mesa: use valid_fragment_program() helper 2009-08-07 09:50:38 -06:00
Brian Paul
94504be63a mesa: test DrawBuffer, not ReadBuffer in _mesa_dest_buffer_exists()
Also, update comments.
2009-08-07 09:50:38 -06:00
Brian Paul
2dec62405f mesa: fix some incorrect error checks in _mesa_error_check_format_type()
Plus, simplify the code a bit.
2009-08-07 09:50:38 -06:00
Brian Paul
3335b847bf mesa: do error checking on glCopyPixels() type parameter
Plus, move some other error checks before state validation and update
some comments.
2009-08-07 09:50:38 -06:00
Brian Paul
28cfd37bb3 mesa: use a more logical flag in _mesa_set_vp_override() 2009-08-07 09:50:38 -06:00
Brian Paul
b28854088b mesa: new _mesa_copy_client_array() function 2009-08-07 09:50:38 -06:00
Brian Paul
692c50b388 i965: minor context comments 2009-08-07 09:50:38 -06:00
Brian Paul
922ef4a119 intel: minor context comments 2009-08-07 09:50:38 -06:00
Brian Paul
6e0be1cc34 intel: move blit call out of assert() 2009-08-07 09:50:38 -06:00
Brian Paul
4d24feddff intel: fix typo: s/softare/software/ 2009-08-07 09:50:37 -06:00
Brian Paul
3105fd760b mesa: fix comment 2009-08-07 09:50:37 -06:00
Dave Airlie
239c8bfb10 radeon: enable tiling fallbacks in 3D driver.
Only really got good testing on r500 so far, need to enable in
DDX and play some more.
2009-08-07 19:40:59 +10:00
Dave Airlie
2dc3fb7803 radeon span: add r200 depth/stencil span read/writing
this should only really affect DRI2 since we mostly have a surface in DRI1.

I don't think this is perfect yet, but it is a better start than nothing.
2009-08-07 16:16:08 +10:00
Dave Airlie
eaf87e84c3 r200: fix scissor emission for r200 under kms 2009-08-07 14:13:19 +10:00
Brian Paul
9676ed27fe util: fix incorrect assertion
Check that the dest surface/format is renderable.
2009-08-06 14:58:06 -06:00
Brian Paul
98f00e8eb9 util: include u_surface.h, added comment 2009-08-06 14:54:25 -06:00
Ian Romanick
3cb6f3bf21 GL_ARB_vertex_array_bgra is (basically) a synonym for the EXT version 2009-08-06 15:26:35 -05:00
Brian Paul
24fdf8aadb util: use util_same_surface() to compare surface pointers 2009-08-06 09:47:13 -06:00
Brian Paul
ffb1f9bded util: added util_same_surface() helper function 2009-08-06 09:47:13 -06:00