Vinson Lee
b611f639b4
glu/sgi: Fix memory leak in gluScaleImage3D.
2009-11-23 00:57:37 -05:00
Keith Whitwell
0a89ad80d9
i965g: gs nr_attrs also tracks nr fragment shader inputs
...
Or, equivalently, nr of outputs of active vertex shader varient.
2009-11-23 03:06:58 +00:00
Keith Whitwell
cd0e6619e6
i965g: correct test for unfilled modes
2009-11-23 03:00:47 +00:00
Richard Li
a12b468d00
r600 : add support for shader instruction trunc and discard.
2009-11-22 21:37:44 -05:00
Keith Whitwell
968a7dfb29
i965g: use correct key size for vs upload
2009-11-23 01:47:57 +00:00
Keith Whitwell
21172d4358
i965g: apply linear math to both linear and perspective attrs
2009-11-23 00:58:13 +00:00
Dave Airlie
c3c8c40cab
r600: hopefully fix segfault.
2009-11-23 06:44:29 +10:00
Dave Airlie
f9b0f1dfa1
r600: fix inline issues
2009-11-23 06:31:29 +10:00
Richard Li
1f8c23d9db
r600 : add stack depth calculation, enable CF pop.
2009-11-22 13:03:20 -05:00
Richard Li
a02938a842
r600 : use cf for all pop now, left optimization for future.
2009-11-22 13:03:19 -05:00
Maciej Cencora
e0fda04013
r300: fix VP source conflict resolution on 64-bit machines
...
On 32bit machines we were lucky because the sizeof(reg) == sizeof(rc_src_register).
On 64bit machines pointers are 8 bytes long, so we were overwriting other data.
2009-11-22 15:08:46 +01:00
Maciej Cencora
dfe440c856
r300: fix SIN/COS/SCS instructions for R300 fp
2009-11-22 14:13:18 +01:00
Vinson Lee
a9c540f5de
glu/sgi: Fix memory leak in gluScaleImage.
2009-11-22 01:57:35 -05:00
Vinson Lee
d3b4c99c70
glu: Fix memory leak in __gl_meshMakeEdge.
2009-11-22 01:45:53 -05:00
Vinson Lee
57d389aab5
svga: Prevent potential null pointer deference in vmw_surface.c.
2009-11-22 01:26:32 -05:00
Vinson Lee
b62a74d3b9
svga: Fix memory leak in vmw_screen_ioctl.c
2009-11-22 01:20:07 -05:00
Vinson Lee
88aab56a26
st/xorg: Prevent potential null pointer deference in xorg_xv.c.
2009-11-22 01:10:38 -05:00
Vinson Lee
46feb7db71
st/xorg: Reorder cases in switch statement.
...
Silences missing break statement warning.
2009-11-22 00:55:52 -05:00
Corbin Simpson
2b07b64061
r300g: Build fix.
...
Oops.
2009-11-21 19:13:26 -08:00
Marek Olšák
44c0aaf990
r300g: do not reallocate r300_vertex_info and r300_rs_block all the time
2009-11-21 14:52:26 -08:00
Marek Olšák
3a2cd66af8
r300g: clean up vs/fs tabs
...
Instead of vs_tab, we use vs_output_tab and it's local now. fs_tab hasn't
been used anywhere, so I removed it and r300_update_fs_tab too.
2009-11-21 14:52:26 -08:00
Michal Krol
6199a0cf89
glsl/apps: No need to purify source text for tokeniser.
2009-11-21 20:44:16 +01:00
Michal Krol
1cf021475a
slang: No need to purify source text for tokeniser.
2009-11-21 20:43:02 +01:00
Michal Krol
abe1f33298
glsl/pp: Do purification and tokenisation in a single step.
2009-11-21 20:41:48 +01:00
Maciej Cencora
563fe6e8f6
radeon: fix compressed mipmapped textures
...
Tested on r300 only, other cards may require adjusting texture_compressed_row_align.
2009-11-21 16:49:18 +01:00
Maciej Cencora
1d1f81af93
radeon: fix glCompressedTexSubImage
2009-11-21 16:49:18 +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
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
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