Commit Graph

21572 Commits

Author SHA1 Message Date
Brian Paul 101c2f907e mesa: simplify glPushAttrib() list building code 2009-08-08 07:30:26 -06:00
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
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 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 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
Ian Romanick 3cb6f3bf21 GL_ARB_vertex_array_bgra is (basically) a synonym for the EXT version 2009-08-06 15:26:35 -05:00
Alan Hourihane 45b12edcbe Ensure GL_EXT_blend_equation_separate is enabled when 2.0 is enabled. 2009-08-06 15:56:05 +01:00
Jakob Bornecrantz 8fdda95162 mesa: Ignores
Got tired of seeing these files in git status all the time
2009-08-06 13:59:48 +01:00
Jakob Bornecrantz 8662f2c542 i915g: Compile with scons 2009-08-06 13:50:46 +01:00
Jakob Bornecrantz c818efd0b3 identity: Use the correct texture 2009-08-06 13:20:49 +01:00
Eric Anholt f44916414e i965: Fix source depth reg setting for FSes reading and writing to depth.
For some IZ setups, we'd forget to account for the source depth register
being present, so we'd both read the wrong reg, and write output depth to
the wrong reg.

Bug #22603.
2009-08-05 20:20:02 -07:00
Jakob Bornecrantz b6c6551686 st/xorg: If we have DRI2 we should also have some sort of hw support 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz b6c9401f13 i915g: Always run in sync with the HW 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz 901b87547e i915g: The i915 seems more happier with sampler domain so lets use that 2009-08-06 00:52:13 +01:00