Commit graph

16083 commits

Author SHA1 Message Date
José Fonseca
56ce90c8be python/retrace: Highlight the trace dump to help to visualize. 2008-11-19 17:17:06 +09:00
José Fonseca
9efa6cafea python/retrace: Use the usual BSD-style license. 2008-11-19 16:23:01 +09:00
José Fonseca
228afbc8e0 gallium: Use costum log2 for all windows builds. 2008-11-17 22:29:24 +09:00
José Fonseca
1e35d92953 gallium: State when there are no memory leaks detected. 2008-11-17 12:29:13 +09:00
José Fonseca
c13cf0d690 gallium: Make handle_table reentrant.
Ensure that the object has consistent state also when calling the destroy
callback. Namely, ensure the object passed to the callback is removed from
the table prior to calling the destroy callback to avoid a infinite loop or
double free.
2008-11-17 12:28:49 +09:00
Brian Paul
7e584a70c4 gallium: increase table size for fast log/pow functions
The various conformance tests pass now.
2008-11-14 12:58:12 -07:00
Brian Paul
6afab9001e util: Use OpenGL rasterization rules in blits and mipmap generation. 2008-11-14 12:58:12 -07:00
Keith Whitwell
0557fa72c0 translate: pull in prefetch and other optimizations from draw_vs_aos.c 2008-11-14 18:00:43 +00:00
Keith Whitwell
d04caf2ce4 trivial: more tests 2008-11-14 18:00:43 +00:00
Michal Krol
0d8637451b util: Optimise log2(). 2008-11-12 19:02:41 +01:00
Michal Krol
f447eea4de util: Add log2() definition for MSC. 2008-11-12 17:14:07 +01:00
Michal Krol
a983f2a6ac draw: Add missing include. 2008-11-12 17:03:58 +01:00
Xiang, Haihao
5cfb0a4087 mesa: restore the negate flag of dots in build_lighting.
Dots is re-used if more than one light is enabled. Previously
the negate flag of dots may affect next light.
2008-11-11 08:11:23 -07:00
Brian
ff42991c72 gallium: fix comment again. A half-closed interval was intended.
Never saw the [a,b[ notation before.
2008-11-10 20:22:36 -07:00
Brian Paul
1dae2be1f6 dri: alloc __DRIscreen object with calloc()
Conflicts:
        src/mesa/drivers/dri/common/dri_util.c
2008-11-10 15:06:13 -07:00
Brian Paul
df84f788d2 mesa: fix logic error in GLSL linker when looking for main() shaders 2008-11-10 14:59:34 -07:00
Pekka Paalanen
eb4dded5be Mesa: fix number of buffers in st_draw_vbo().
The clean-up call to pipe->set_vertex_buffers() should use the same
number of buffers as the first call.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-10 11:16:15 -07:00
Brian Paul
2276dcf05f gallium: fix typos in comments 2008-11-10 08:24:45 -07:00
Zack Rusin
5668e7fa80 gallium: actually flip the coordinates 2008-11-10 08:05:20 -07:00
Brian
325cbeb29a util: Fix util_fast_pow/exp2/log2.
- Use a lookup table for log2.

- Compute (float) (1 << ipart) by tweaking with the exponent directly to
avoid integer overflow and float conversion.

- Also table negative exponents to avoid float division and branching.

- Implement util_fast_exp as function of util_fast_exp2.

--------

Cherry-picked from gallium-0.2: 8415d06d90

This fixes some pow() glitches seen in fslight.c, spectex.c, etc.

Conflicts:
       src/gallium/auxiliary/util/u_math.h
2008-11-09 10:17:43 -07:00
Brian
7e83157019 gallium: _debug_vprintf() should be silent if DEBUG is not defined 2008-11-09 09:45:12 -07:00
Brian Paul
eb459814b7 mesa: use _bfc0 instead of _col0 when building back face lighting.
cherry-picked from master: 4550b0562d
2008-11-07 10:23:22 -07:00
Brian
bb8a9ce705 gallium: implement TGSI_OPCODE_NRM/NRM4 in tgsi_exec.c 2008-11-06 19:25:21 -07:00
Brian Paul
2f1a29654a mesa: update the shader programs->TexturesUsed array at link time
If an application never calls glUniform() to set sampler variable values
they'll remain 0 (the default value/unit).
Now call _mesa_update_shader_textures_used() at link time in case glUniform()
is never called.  program->TextureUsed[] will then be correct for state
validation.
2008-11-06 15:04:11 -07:00
Brian Paul
678f80b347 gallium: added st_print_shaders() function to help w/ debugging 2008-11-06 15:00:01 -07:00
Brian Paul
6c3e7365d5 gallium: debug code to print vertex array data (disabled) 2008-11-06 14:57:20 -07:00
Brian Paul
93fd5e150b softpipe: debug code (disabled) 2008-11-06 14:56:59 -07:00
Brian
5b2b064a5c gallium: check execution mask in indirect register loads
Zero-out the index for disabled execution channels to avoid using potential
garbage values (thus avoiding bad array indexing).
2008-11-05 20:04:49 -07:00
Brian
639a2b0ec8 gallium: don't range check tgsi register index for indirect accesses
Fixes progs/vp/arl.txt test.
2008-11-05 19:27:27 -07:00
Brian Paul
de14fdd63f gallium: added check for degenerate drawing calls 2008-11-05 14:05:42 -07:00
Brian Paul
6282c38283 gallium: if VERBOSE_GLSL flag is set, check for non-initialized uniforms at draw time
This will warn the user that the shader being run may be using uninitialized
uniform variables.
2008-11-05 14:05:04 -07:00
Brian Paul
0331c1c169 mesa: fix a GLSL array indexing codegen bug
Expressions like array[i] + array[j] didn't work properly before.
2008-11-05 14:03:15 -07:00
Brian Paul
f0debbb0bb gallium: call tgsi_set_exec_mask() and use exec mask in SSE ARL code
This prevents vertex shaders from referencing invalid memory locations when
the shader is operating on less than four vertices or fragments.
2008-11-05 14:02:07 -07:00
Brian Paul
03c0ce4c61 gallium: added tgsi_set_exec_mask() 2008-11-05 13:56:20 -07:00
Brian Paul
a137f03c56 gallium: added some sanity check assertions for constant buffer indexing 2008-11-05 13:55:56 -07:00
Brian Paul
528c860a58 mesa: remove extra \n from printf string 2008-11-05 09:33:48 -07:00
Brian Paul
2ff4636603 mesa: add Initialized field to gl_uniform struct, for debugging purposes only 2008-11-05 09:14:19 -07:00
Brian Paul
05a17f83b0 gallium: added some debug code (disabled) 2008-11-05 09:08:56 -07:00
Brian Paul
fc3b361191 gallium: disable some debug output 2008-11-05 09:08:56 -07:00
Jakob Bornecrantz
64a9908816 i915: Remove faulty assert 2008-11-05 16:49:48 +01:00
michal
5a0299875c draw: Implement TGSI_OPCODE_TRUNC. 2008-11-05 11:59:33 +01:00
michal
502974b345 tgsi: Implement OPCODE_TRUNC. 2008-11-05 11:59:33 +01:00
Brian Paul
f16f53ae3d mesa: fix float-valued GLSL vertex attribute variables
The swizzle mask for such variables wasn't set up properly.
2008-11-04 16:54:57 -07:00
Brian Paul
c7e98469fa mesa: silence warnings 2008-11-01 16:04:58 -06:00
Brian Paul
e9bc632d82 mesa: do scope replacement for while/for loops too
This fixes a function inlining bug involving vars declared inside loop bodies.
2008-11-01 16:03:03 -06:00
Brian Paul
58936b51af mesa: glsl tree print improvements 2008-11-01 16:02:56 -06:00
Brian Paul
90cdb8a4de mesa: fix assignment / parameter passing of sampler types 2008-11-01 16:02:32 -06:00
Brian Paul
b3cfcd326b mesa: additional debug flags for glsl debug/disassembly 2008-11-01 15:58:00 -06:00
Brian Paul
fa139f8826 mesa: fix some bugs with precision qualifier parsing 2008-10-31 17:54:18 -06:00
Brian Paul
40217db75a mesa: do scope replacement for variable initializers too 2008-10-31 17:51:25 -06:00