Commit Graph

27845 Commits

Author SHA1 Message Date
Michal Krol c511e0b844 tgsi: Clamp the source argument in micro_exp2() to avoid Inf. 2009-11-23 11:32:58 +01:00
Michal Krol eacdd8fa75 tgsi: Remove code that actually had no effect. 2009-11-23 11:29:29 +01:00
Michal Krol cc93fa3527 softpipe: Initialise TGSI machine's Face. 2009-11-23 10:51:07 +01:00
Michal Krol cc35a454da tgsi: Fix POSITION and FACE fragment shader inputs. 2009-11-23 10:49:41 +01:00
Michal Krol b7590cde4a tgsi: Bring BGNFOR/ENDFOR implementation up to spec. 2009-11-23 10:40:05 +01:00
Michal Krol cde758a2b5 tgsi: Fake TXD implementation in exec. 2009-11-23 10:29:08 +01:00
Michal Krol f359ac5486 tgsi: Add execution debugging facilities to exec. 2009-11-23 10:29:07 +01:00
Michal Krol f61865799d slang: Be more robust with memory in concat_shaders(). 2009-11-23 10:29:05 +01:00
Richard Li a12b468d00 r600 : add support for shader instruction trunc and discard. 2009-11-22 21:37:44 -05: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
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
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
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
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
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
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
Richard Li b09e74901a r600 : Clean up a bit test code mess. 2009-11-19 17:41:10 -05:00
Vinson Lee 8b808d50e2 st/xorg: Fix infinite loop in copy_packed_data. 2009-11-19 14:40:00 -08:00
Vinson Lee 4ab8dbe593 progs/xdemos: Add missing break statement in offset.c. 2009-11-19 14:20:26 -08:00
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.
2009-11-19 15:18:23 -07:00
Brian Paul 2198497203 vbo: added recursion check in vbo_exec_FlushVertices() 2009-11-19 15:17:56 -07:00
Richard Li 48dfd3938e r600 : change shader pop method for now. 2009-11-19 16:55:16 -05:00
Brian Paul dc41d62250 st/mesa: get rid of compressed_num_bytes() code 2009-11-19 14:35:38 -07:00
Brian Paul 92863109af st/mesa: remove is_compressed_mesa_format() 2009-11-19 14:17:31 -07:00
Brian Paul 273f4d6b5f st/mesa: remove pointless assertion 2009-11-19 14:17:31 -07:00
Brian Paul 3f40166500 softpipe: whitespace/indentation fixes 2009-11-19 14:17:31 -07:00
Richard Li 49b3f4a6bc Merge branch 'master' of ssh://richardradeon@git.freedesktop.org/git/mesa/mesa 2009-11-19 16:17:13 -05:00
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).
2009-11-19 16:05:43 -05:00
Vinson Lee 3790c6a13b progs/trivial: Redraw upon keypress. 2009-11-19 13:03:12 -08:00
José Fonseca 90e69c81e4 pb: Make fenced buffers threadsafe. 2009-11-19 19:46:21 +00:00