Marek Olšák
435c495549
r300g: silence warnings
pirms 16 gadiem
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.
pirms 16 gadiem
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.
pirms 16 gadiem
Marek Olšák
b7078a8811
r300g: add texture lod clamping
These now work:
piglit/lodclamp
piglit/levelclamp
pirms 16 gadiem
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
pirms 16 gadiem
Vinson Lee
052b127842
st/egl: Fix memory leak in egl_tracker.c.
pirms 16 gadiem
Vinson Lee
ea98e9820d
draw: Initialize variable in draw_pt.c.
pirms 16 gadiem
Vinson Lee
e19195c185
progs/xdemos: Fix memory leak in pbinfo.c.
pirms 16 gadiem
Vinson Lee
e0857962b9
progs/xdemos: Fix memory leak in pbdemo.c.
pirms 16 gadiem
Vinson Lee
538a8df652
progs/xdemos: Fix memory leak in glxpbdemo.c.
pirms 16 gadiem
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.
pirms 16 gadiem
Marek Olšák
ae70cd1f02
r300g: remove variant states from emit_state_invariant
pirms 16 gadiem
Vinson Lee
a4720a1a32
progs/xdemos: Remove duplicate code in glxinfo.c.
pirms 16 gadiem
Vinson Lee
66a4ec14c3
progs/xdemos: Add assert in corender.c.
pirms 16 gadiem
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).
pirms 16 gadiem
Marek Olšák
f4041b37e2
r300g: fix rectangle textures on r3xx
Adapted from Maciej Cencora's patch.
pirms 16 gadiem
Vinson Lee
f6541773c4
i915g: Add missing break statement in i915_debug.c.
pirms 16 gadiem
Vinson Lee
36e2074b63
gallium/util: Initialize variables in u_pack_color.h.
pirms 16 gadiem
Corbin Simpson
06ec216d19
r300g: Clean up bitcounting function.
I didn't see this in u_math; surely somebody else has this wheel
reinvented elsewhere.
pirms 16 gadiem
Corbin Simpson
6a3eb1f91b
r300g: Use MAX3 and MIN3.
pirms 16 gadiem
Corbin Simpson
37ba97421c
util: Add MAX3 and MIN3.
pirms 16 gadiem
Marek Olšák
beea241374
r300g: set better values in the R300_VAP_CNTL register
pirms 16 gadiem
Alan Hourihane
0295edf596
Fix comment to use /* */ rather than //
pirms 16 gadiem
Alan Hourihane
904469dcd2
Fix indentation.
pirms 16 gadiem
Alan Hourihane
8f648cd3e4
Fix vega compilation.
pirms 16 gadiem
Alan Hourihane
a24631bcd7
Fix memory leak.
pirms 16 gadiem
Richard Li
08e5d1ecad
r600 : eliminate Wondows line ending for test code.
pirms 16 gadiem
Dave Airlie
3f2c77659c
Merge remote branch 'origin/mesa_7_7_branch'
pirms 16 gadiem
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>
pirms 16 gadiem
Richard Li
b09e74901a
r600 : Clean up a bit test code mess.
pirms 16 gadiem
Vinson Lee
8b808d50e2
st/xorg: Fix infinite loop in copy_packed_data.
pirms 16 gadiem
Keith Whitwell
683e35f726
gallium: don't use arrays for texture width,height,depth
pirms 16 gadiem
Vinson Lee
4ab8dbe593
progs/xdemos: Add missing break statement in offset.c.
pirms 16 gadiem
Brian Paul
4e6c79ac16
st/mesa: replace st_flush() with pipe->flush()
We only need to flush the gallium driver in this case.
Fixes a recursive state validation bug.
pirms 16 gadiem
Brian Paul
2198497203
vbo: added recursion check in vbo_exec_FlushVertices()
pirms 16 gadiem
Richard Li
48dfd3938e
r600 : change shader pop method for now.
pirms 16 gadiem
Brian Paul
dc41d62250
st/mesa: get rid of compressed_num_bytes() code
pirms 16 gadiem
Brian Paul
92863109af
st/mesa: remove is_compressed_mesa_format()
pirms 16 gadiem
Brian Paul
273f4d6b5f
st/mesa: remove pointless assertion
pirms 16 gadiem
Brian Paul
3f40166500
softpipe: whitespace/indentation fixes
pirms 16 gadiem
Richard Li
49b3f4a6bc
Merge branch 'master' of ssh://richardradeon@git.freedesktop.org/git/mesa/mesa
pirms 16 gadiem
Richard Li
6345a7ba44
r600 : check in shader code test enable flag: if flag
R600_ENABLE_GLSL_TEST defined, IL shader code will goto r600 assembler.
The test base is /mesa/progs/glsl/brick, and changes
shader code in CH06-brick.frag/vert to test different logic op
combination. (if,else,while,function,...). The stack depth code is not
in yet, so it is hard coded now. So complex code would not run (such as
things like 8 loops embeded loop in loop).
pirms 16 gadiem
Vinson Lee
3790c6a13b
progs/trivial: Redraw upon keypress.
pirms 16 gadiem
José Fonseca
90e69c81e4
pb: Make fenced buffers threadsafe.
pirms 16 gadiem
Brian Paul
367cfca808
softpipe: add missing check in softpipe_is_texture_referenced()
Check if the named texture is referenced by the texture cache.
pirms 16 gadiem
Michel Dänzer
31ea323b4d
st/xorg: Replace compile-time acceleration switch with Option "2DAccel".
This option can be used to disable 2D acceleration. DRI2 and XVideo blits will
still be accelerated, at least to some degree even with compositing.
pirms 16 gadiem
Michel Dänzer
10c67f9381
st/xorg: Miscellaneous XVideo fixes.
* Make sure the destination pixmap has a texture to render into.
* Fix damage reporting so the EXA migration code can do the right thing.
* Fix destination coordinates for redirected windows.
pirms 16 gadiem
Brian Paul
3128d65fd7
docs: document fixes for AIX
pirms 16 gadiem
Tom Fogal
7593bcb6ec
gl: added mangled glXGetProcAddressARB define
Signed-off-by: Brian Paul <brianp@vmware.com>
pirms 16 gadiem
Michel Dänzer
34145fc3b7
st/xorg: Try harder to ensure a shared texture has valid contents right away.
pirms 16 gadiem