Commit graph

31758 commits

Author SHA1 Message Date
Maciej Cencora
df87877636 radeon: fix glCompressedTexSubImage 2009-11-21 16:30:41 +01:00
Roland Scheidegger
465fee75ee intel: make CopyTex[Sub]Image fallback debug messages more consistent 2009-11-21 04:41:43 -08:00
Roland Scheidegger
c367f4d46e mesa: handle different RowStride in _mesa_get_compressed_teximage
drivers storing compressed textures with non-native stride but relying on
_mesa_get_compressed_teximage for GetCompressedTexImage otherwise won't
work correctly (for instance i965 compressed mipmaps).
2009-11-21 04:41:43 -08:00
Eric Anholt
8451b29d96 i965: Fix several memory leaks on exit.
Bug #25194.
2009-11-21 13:33:57 +01:00
Marek Olšák
435c495549 r300g: silence warnings 2009-11-20 18:06:21 -08:00
Marek Olšák
624a0cd9c1 r300g: fix typo in r300_reg.h to prevent the RS unit from doing random things
And reorder fragment shader inputs so that the colors are before texcoords,
as is allocated by the shader compiler. This commit makes VS->FS attribute
routing work on R500.
2009-11-20 18:05:21 -08:00
Marek Olšák
4e1236e602 r300g: fix updating a vertex format
We must update PSC when we change the vertex format, e.g. vertex colors
from RGBA to BGRA.
2009-11-20 18:04:06 -08:00
Marek Olšák
b7078a8811 r300g: add texture lod clamping
These now work:
piglit/lodclamp
piglit/levelclamp
2009-11-20 17:58:13 -08:00
Keith Whitwell
8bf75f28de i965g: get basic texturing working again
Revert to fixed-layout surface binding table -- it's probably the best
way to do this.  Pass sampler and texture numbers separately even
though we're always keeping them the same at present.
2009-11-21 01:52:22 +00:00
Corbin Simpson
1c181a7eff r300g: Begin separating HW TCL and SW TCL state and setup.
This patch removes draw_context entirely from the HW TCL path and cleans up
a few other things along the way. Hopefully, nothing got broken.

Thanks to Marek Olšák for testing, review, and pointing out my bugs. :3
2009-11-20 17:48:10 -08:00
Vinson Lee
052b127842 st/egl: Fix memory leak in egl_tracker.c. 2009-11-20 16:33:25 -08:00
Vinson Lee
ea98e9820d draw: Initialize variable in draw_pt.c. 2009-11-20 16:03:48 -08:00
Vinson Lee
e19195c185 progs/xdemos: Fix memory leak in pbinfo.c. 2009-11-20 15:52:53 -08:00
Vinson Lee
e0857962b9 progs/xdemos: Fix memory leak in pbdemo.c. 2009-11-20 15:48:29 -08:00
Vinson Lee
538a8df652 progs/xdemos: Fix memory leak in glxpbdemo.c. 2009-11-20 15:18:19 -08:00
Marek Olšák
015e7e7724 r300g: emit R300_TEX_ENABLE to indicate there are no textures bound
Previously, this reg wasn't emitted at all if texture_count == 0.
2009-11-20 15:12:18 -08:00
Marek Olšák
ae70cd1f02 r300g: remove variant states from emit_state_invariant 2009-11-20 15:08:52 -08:00
Vinson Lee
a4720a1a32 progs/xdemos: Remove duplicate code in glxinfo.c. 2009-11-20 15:06:56 -08:00
Vinson Lee
66a4ec14c3 progs/xdemos: Add assert in corender.c. 2009-11-20 15:03:16 -08:00
Corbin Simpson
6a95996abb r300g: Texrect factor cleanup.
(0, 0, 0, 1) is a much saner default value, and texrect factors only need
to be (1/s, 1/t, 0, 1).
2009-11-20 14:56:13 -08:00
Marek Olšák
f4041b37e2 r300g: fix rectangle textures on r3xx
Adapted from Maciej Cencora's patch.
2009-11-20 14:47:31 -08:00
Vinson Lee
f6541773c4 i915g: Add missing break statement in i915_debug.c. 2009-11-20 14:31:42 -08:00
Vinson Lee
36e2074b63 gallium/util: Initialize variables in u_pack_color.h. 2009-11-20 14:20:15 -08:00
Corbin Simpson
06ec216d19 r300g: Clean up bitcounting function.
I didn't see this in u_math; surely somebody else has this wheel
reinvented elsewhere.
2009-11-20 14:10:59 -08:00
Corbin Simpson
6a3eb1f91b r300g: Use MAX3 and MIN3. 2009-11-20 14:10:45 -08:00
Corbin Simpson
37ba97421c util: Add MAX3 and MIN3. 2009-11-20 14:08:58 -08:00
Marek Olšák
beea241374 r300g: set better values in the R300_VAP_CNTL register 2009-11-20 13:33:37 -08:00
Alan Hourihane
0295edf596 Fix comment to use /* */ rather than // 2009-11-20 18:11:30 +00:00
Alan Hourihane
904469dcd2 Fix indentation. 2009-11-20 18:10:54 +00:00
Alan Hourihane
8f648cd3e4 Fix vega compilation. 2009-11-20 18:09:10 +00:00
Alan Hourihane
a24631bcd7 Fix memory leak. 2009-11-20 18:08:29 +00:00
Richard Li
08e5d1ecad r600 : eliminate Wondows line ending for test code. 2009-11-20 11:03:09 -05:00
Michal Krol
b89cd8afc5 glsl/pp: Expand unknown identifiers to 0 in if/elif expressions. 2009-11-20 08:59:50 +01:00
Keith Whitwell
95d7aca4b9 i965g: fix typo converting wm src regs 2009-11-19 20:40:41 -08:00
Keith Whitwell
9507a6c206 i965g: fragment shader immediates working 2009-11-19 20:02:42 -08:00
Keith Whitwell
63b0af0775 i965g: first pass at vs immediates in curbe 2009-11-19 19:51:14 -08:00
Keith Whitwell
3fafe2b969 progs/vp: add param and imm test 2009-11-19 19:50:19 -08:00
Keith Whitwell
d2f4c80c8b i965g: get linear vs perspective interpolation working again 2009-11-19 19:41:25 -08:00
Keith Whitwell
4fb77ef840 i965g: include interpolation info in fs signature 2009-11-19 19:31:32 -08:00
Keith Whitwell
34a01929d5 i965g: special case setup when fs has no inputs 2009-11-19 19:29:33 -08:00
Keith Whitwell
47cef2bb8f i965g: add new state flag tracking fs signature changes 2009-11-19 18:55:18 -08:00
Keith Whitwell
c58e20fbbb i965g: fix typo in previous commit 2009-11-19 18:47:07 -08:00
Dave Airlie
3f2c77659c Merge remote branch 'origin/mesa_7_7_branch' 2009-11-20 11:48:10 +10:00
Dave Airlie
f8ea531820 r100: fix texture_from_pixmap and compiz.
r100 state emission has separate rect and non-rect states,
if we are doing TFP for a TEXTURE_2D we shouldn't use the rect
states as they won't get emitted properly.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-20 11:47:00 +10:00
Keith Whitwell
7e5cd3eb14 progs/fp: add simple imm, param tests 2009-11-19 16:53:02 -08:00
Keith Whitwell
8db59a1fa3 i965g: setup nr_attrs should track nr fragment shader inputs
This would be equivalent to taking the nr outputs of the vp varient
2009-11-19 16:14:44 -08:00
Keith Whitwell
1b9eda4c74 i965g: get fragment constants sort-of working 2009-11-19 16:09:39 -08:00
Keith Whitwell
9e4f3eaf66 i965g: make the load-before-use vs immediate path work 2009-11-19 15:04:00 -08:00
Keith Whitwell
25cbf9b4da i965g: fix initialization of texture width/height/depth arrays
Will remove these arrays in another branch - they're completely redundant.
2009-11-19 14:47:24 -08:00
Richard Li
b09e74901a r600 : Clean up a bit test code mess. 2009-11-19 17:41:10 -05:00