Commit Graph

16102 Commits

Author SHA1 Message Date
Michal Krol 1347439a87 tgsi: Implement OPCODE_SSG/SGN. 2008-11-26 17:11:03 +01:00
Brian Paul 1250526e30 gallium: disable TGSI_OPCODE_ARR case until emit_rnd() is redone. 2008-11-26 07:41:19 -07:00
Brian Paul 6e96bd70e5 Revert "tgsi: Implement OPCODE_ROUND for SSE2 backend."
This reverts commit 685fd2c035.

Does not compile since emit_rnd() is trying to pass 4 params to
emit_func_call_dst() which takes 3 params.
2008-11-26 07:38:31 -07:00
Brian Paul 277089b81a gallium: fix glBitmap color bug
By time we get around to rendering the cached bitmap, the current color may
have changed.  Need to make sure we load the constant slot with the cached
color.
2008-11-26 07:08:19 -07:00
Brian Paul 281055987a gallium: replace 2 with PIPE_SHADER_TYPES 2008-11-26 07:08:19 -07:00
Michal Krol eee3d21604 tgsi: Implement OPCODE_ARR. 2008-11-26 21:47:09 +09:00
Michal Krol 685fd2c035 tgsi: Implement OPCODE_ROUND for SSE2 backend. 2008-11-26 21:47:00 +09:00
José Fonseca 55839ae064 pipebuffer: Fix buffer overflow. 2008-11-25 15:49:23 +09:00
Brian Paul f8870af44b gallium: fix inverted raster pos when drawing into FBO 2008-11-24 18:37:36 -07:00
José Fonseca 17849eafaa pipebuffer: Ondemand buffer manager.
A variation of malloc buffers which get transferred to real graphics memory
when there is an attempt to validate them.
2008-11-24 23:17:49 +09:00
José Fonseca a6d866f72c pipebuffer: Implement proper buffer validation. 2008-11-24 13:59:06 +09:00
José Fonseca d600c805c0 gallium: Define convenience shortcuts for CPU/GPU READ/WRITE flag combinations. 2008-11-24 13:45:19 +09:00
José Fonseca 52e9c9770a mesa: Don't call fence_finish with a null fence. 2008-11-24 13:44:30 +09:00
Michal Krol 79bfe372f2 scons: Fix toolchain selection. 2008-11-20 23:01:53 +09:00
José Fonseca 15b92b09e0 scons: Support MinGW32 cross compiler.
To build an alternative opengl32.dll with Gallium's software-rasterizer from a
debian-based distribution run:

  sudo apt-get install mingw32
  scons platform=windows toolchain=crossmingw machine=x86 winsys=gdi dri=no
2008-11-20 23:01:43 +09:00
José Fonseca 59ae12b5b1 python/retrace: Dump constants. 2008-11-20 01:02:03 +09:00
José Fonseca 2f153b5487 python: Allow to read from buffers. 2008-11-20 01:01:48 +09:00
José Fonseca 8a9e06257f python/retrace: Fix formatting of shaders. 2008-11-19 20:06:52 +09:00
José Fonseca 03f19bc33d python/retrace: Ignore irrelevant calls. 2008-11-19 20:06:04 +09:00
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