Commit graph

33789 commits

Author SHA1 Message Date
Vinson Lee
8352983e2a llvmpipe: Remove unused variable. 2010-04-25 13:10:02 -07:00
José Fonseca
7951630d08 llvmpipe: llvmpipe_flush_texture -> llvmpipe_flush_resource 2010-04-25 15:54:32 +01:00
José Fonseca
5745bcb2db llvmpipe: Fix buffer overflow unswizzling several formats.
Array formats without for channels were being advanced as four channels,
causing buffer overflows.
2010-04-25 15:54:32 +01:00
José Fonseca
89f244931f softpipe: Hardcode TILE_CLEAR_OPTIMIZATION to 1.
The un-optimized path relies on surface_fill which can only handle formats
with depth <= 32, so it is pointless to keep it around.
2010-04-25 15:54:32 +01:00
José Fonseca
23df86d851 llvmpipe: Replace tile_read/write with more descriptive swizzle/unswizzle verbs. 2010-04-25 15:54:31 +01:00
José Fonseca
adc7cd6240 llvmpipe: Cleanup llvmpipe_is_format_supported().
It should be just cosmetic.
2010-04-25 15:54:31 +01:00
José Fonseca
7e4ce65d71 softpipe: More accurate softpipe_is_format_supported().
Unfortunately there are some heavy limitations on supported render target
formats due to the way clear values are used internally.
2010-04-25 15:54:31 +01:00
José Fonseca
8a70c47c4c llvmpipe: Remove sp2lp.sh.
Irrelevant now that llvmpipe and softpipe grew so far apart.
2010-04-25 15:54:30 +01:00
José Fonseca
7cebd16fbb llvmpipe: lp_tex_sample_llvm.c -> lp_tex_sample.c
'llvm' suffix unnecessary now that the C sampling version disappeared.
2010-04-25 15:54:30 +01:00
Vinson Lee
7b7a9e8927 st/dri: Add missing header.
Add GL/internal/dri_interface.h for __DRI_TEXTURE_FORMAT_RGB.
2010-04-25 02:18:52 -07:00
Vinson Lee
5d37cebc1b gallivm: Rename variable info to opcode_info.
Avoid hiding existing variable already named info in outer scope.
2010-04-25 02:04:13 -07:00
Vinson Lee
d69ed3a96e radeon: Remove NULL check of bo_legacy->tobj.
bo_legacy->tobj cannot be NULL before the call to driUpdateTextureLRU.
There is a NULL check earlier in the routine, and if bo_legacy->tobj is
NULL, memory is allocated.
2010-04-24 23:44:56 -07:00
Vinson Lee
a1a7738223 gallivm: Remove NULL check of pointer that can't be NULL.
info cannot be NULL at the call to debug_printf. emit_instruction
dereferences info, so at debug_printf it is either not NULL or the
program has already crashed.
2010-04-24 23:31:35 -07:00
Vinson Lee
9bc54ca991 dri: Remove unnecessary header. 2010-04-24 23:14:27 -07:00
Vinson Lee
bd93670bfd nvfx: Add to SCons build. 2010-04-24 16:22:47 -07:00
Dave Airlie
22e8ddc748 llvm: fix configure.ac harder 2010-04-25 07:55:15 +10:00
Vinson Lee
ac942f5aa2 nv50: Add to SCons build. 2010-04-24 14:38:48 -07:00
Vinson Lee
b147aaea4d llvmpipe: Remove unused variable. 2010-04-24 14:29:08 -07:00
Vinson Lee
c7bb271f0d llvmpipe: Remove unnecessary header. 2010-04-24 14:19:47 -07:00
José Fonseca
e54a86c677 llvmpipe: Implement shader bias.
Fixes glean glsl1 test: texture2D(), with bias.
2010-04-24 21:00:45 +01:00
José Fonseca
cca8abe20e mesa: Eliminate multiple va_list usage.
va_list is a mutable iterator. When passed to a function it will likely
point to somewhere else.

This fixes segmentation fault in glean vertProg1 on Ubuntu 9.10.
2010-04-24 20:31:30 +01:00
José Fonseca
1eeae05441 util: Add missing static keyword. 2010-04-24 16:13:54 +01:00
José Fonseca
ee15d5a0c4 util: Fix unsigned <-> ptr conversions. 2010-04-24 16:13:41 +01:00
José Fonseca
aa7a47dcbd llvmpipe: Initialize dummy variable. 2010-04-24 16:13:18 +01:00
José Fonseca
bd6e9e3350 llvmpipe: Don't use fences when not using threads.
lp_setup_flush has effect immediately.
2010-04-24 16:13:04 +01:00
José Fonseca
39be50dcde llvmpipe: Move the determination of the number of threads to the screen. 2010-04-24 13:20:39 +01:00
José Fonseca
e7a8cfc877 gallivm: Centralize the cpu caps detection. 2010-04-24 13:19:10 +01:00
José Fonseca
30a1c36dc8 llvmpipe: Pass flatshade_first to setup.
Fixes piglit provoking-vertex.
2010-04-24 12:00:06 +01:00
José Fonseca
e94a092437 svga: D3DCOLOR actually stands for B8G8R8A8. 2010-04-24 11:39:12 +01:00
José Fonseca
e6c3f594e9 svga: Translate recently added vertex formats. 2010-04-24 11:39:09 +01:00
José Fonseca
53499c64b2 cso_cache: Ensure irrelevant state of the blend state is zeroed.
Otherwise drivers that bake the full blend state in a key end up having
uninitialized memory in their key.

Courtesy of valgrind.
2010-04-24 11:39:09 +01:00
Jakob Bornecrantz
a523b62203 st/dri: DRI2 give proper binding to depth buffer 2010-04-24 11:24:26 +01:00
José Fonseca
94b04d3d1c sw/xlib: Fix bad logic in shm allocation.
Fixes fdo 27823.
2010-04-24 10:15:09 +01:00
José Fonseca
35a920e83b gallivm: LLVMConstBitCast -> LLVMBuildBitCast
As the argument in general might not be a constant.
2010-04-24 10:06:27 +01:00
Dave Airlie
81fe19843a llvmpipe: add initial autoconf support.
allows the swrastg_dri.so to be built with llvmpipe, also links llvm
to all dri drivers

use --enable-gallium-llvm to use it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-24 18:55:50 +10:00
Vinson Lee
e3eed8bf21 nouveau: Add to SCons build. 2010-04-24 01:15:00 -07:00
Vinson Lee
dda8046a64 gallium/docs: Update Gallium version number to 0.4. 2010-04-24 00:21:34 -07:00
Vinson Lee
3ee4ec99ea llvmpipe: Remove unused variable. 2010-04-24 00:02:48 -07:00
Vinson Lee
c3c920ee2c gallium: In option helpers, move assignment outside of if clause.
This silences Coverity assign_where_compare_meant warnings.
2010-04-23 22:06:19 -07:00
Brian Paul
4ff354f281 st/mesa: checkpoint WIP: mipmap generation for compressed textures
Something is wrong with the images strides when compressing/decompressing
images...
2010-04-23 18:12:45 -06:00
Brian Paul
63c9b4f3d2 xlib/sw: remove stray semicolon 2010-04-23 18:12:27 -06:00
Brian Paul
1a4383cd42 softpipe: compressed formats can't be render targets 2010-04-23 18:12:24 -06:00
Brian Paul
b806f2a239 gallium/util: document that pack/unpack strides are in bytes 2010-04-23 18:12:19 -06:00
Brian Paul
394ff065f3 st/mesa: minor improvements in fallback_generate_mipmap() 2010-04-23 16:04:55 -06:00
Brian Paul
51523f1144 st/mesa: remove unneeded #includes and add/update comments 2010-04-23 15:41:49 -06:00
Brian Paul
76c7ad2e7d st/mesa: clean-up: use st_context() everywhere 2010-04-23 15:41:49 -06:00
Brian Paul
57fc2e7802 mesa: simplify some code in _mesa_generate_mipmap() 2010-04-23 15:41:49 -06:00
Brian Paul
67f928eef3 gallium/failover: include u_memory.h for MALLOC, FREE 2010-04-23 15:39:43 -06:00
Brian Paul
06441af657 gallium/draw: remove old comment 2010-04-23 15:36:14 -06:00
Jakob Bornecrantz
1820d240cd gallium: Convert some uses of get option to static 2010-04-23 21:57:49 +01:00