Brian Paul
50d77c79fb
gallium: fix comment language, remove dangling comment
2010-04-22 11:33:26 -06:00
José Fonseca
2eea1714fd
llvmpipe: Fix resource_is_texture.
...
It was missing PIPE_BIND_RENDER_TARGET, causing assertion failures for
pure render targets.
Also bind flags are too variable and complex for a good assessment for
whether the resource is a texture or not. Target is more concise.
2010-04-22 18:06:05 +01:00
José Fonseca
510669cd87
llvmpipe: Do not advertise S3TC rendering support.
2010-04-22 15:12:30 +01:00
José Fonseca
6ae9975ea0
llvmpipe: Fix typo in assert.
2010-04-22 15:11:57 +01:00
José Fonseca
52bc90caa8
u_format: Reduce code duplication.
2010-04-22 15:11:34 +01:00
Vinson Lee
bd91f665a7
gallivm: Remove unused variable.
2010-04-22 00:45:27 -07:00
Alex Deucher
48a1806126
r300g: fix vertex unit setup
...
RV3xx is 2, RV560,RV570 is 8
Noticed by Tormod Volden.
2010-04-22 02:37:34 -04:00
Vinson Lee
7a0b48e349
gallium/util: Fix deviation calculation in u_cache.
...
The approximate deviation calculation was using the entire cache's total
instead of each cache entry's total.
2010-04-21 18:45:44 -07:00
Vinson Lee
393009a939
gallium/tests: Add test case for u_cache.
2010-04-21 18:31:01 -07:00
Brian Paul
7fe93f831d
gallivm: added some assertions in loop-gen code
...
We're hitting these assertions with nested loops...
2010-04-21 18:22:18 -06:00
Brian Paul
bba6a196bb
gallivm: fix copy&paste error: s/cont_stack_size/break_stack_size/
2010-04-21 17:58:32 -06:00
Brian Paul
fc9b8cd9dd
gallivm: emit_instruction() is boolean
2010-04-21 17:57:44 -06:00
Brian Paul
04c136d5c2
llvmpipe: add missing dependency in Makefile
2010-04-21 16:30:13 -06:00
Brian Paul
feffd259da
gallivm: implement TGSI KILP
...
As in tgsi_exec.c we don't actually rely on condition codes; we do
an unconditional kill. The only predication comes from the execution
mask which applies inside loops/conditionals.
2010-04-21 16:30:13 -06:00
José Fonseca
5c364b3ef7
draw: Make LLVM integration work without llvmpipe too (e.g. sofptipe).
...
Prevents the assertion failure.
2010-04-21 22:58:41 +01:00
Marek Olšák
dd029dcb14
r300g: raise the max index for generic varyings to 32
...
This should fix an assertion failure in the game Heroes of Newearth.
Yes, the game seems to generate semantic indices greater than 15.
2010-04-21 22:57:01 +02:00
Brian Paul
01c12ed60c
softpipe: call draw_wide_point_sprites()
2010-04-21 14:25:28 -06:00
Brian Paul
8cb223eb02
gallium/draw: fix point sprite handling
...
New draw API function to indicate whether or not to convert points to
quads for sprite rasterization.
Fix point-to-quad conversion regression in the wide-point stage. We
need to check the pipe_rasterizer_state::point_quad_rasterization flag.
2010-04-21 14:25:28 -06:00
Brian Paul
d30ab4394e
gallium/draw: use local var to simplify code
2010-04-21 14:25:28 -06:00
Brian Paul
15d60294d6
llvmpipe: consolidate texture memory allocation code
...
And fix incorrect allocation of linear memory for display targets.
This fixes fd.o bugs 27761 and 27762.
2010-04-21 10:30:57 -06:00
Brian Paul
867109f311
st/glx: variable 'i' is an enum
...
Now we can get see 'i' as an enum name instead of a plain integer in gdb.
2010-04-21 09:58:17 -06:00
Jakob Bornecrantz
f9f06f68fb
targets: Don't check if we should use trace
...
Trace does its own checking, and it used the GALLIUM_TRACE variable
as well, but expected a file and not a bool argument.
2010-04-21 14:50:25 +01:00
Vinson Lee
a85afb9177
llvmpipe: Remove unused variable.
2010-04-20 22:56:39 -07:00
Vinson Lee
9e258fc2bd
gallivm: Remove unnecessary headers.
2010-04-20 18:48:04 -07:00
Vinson Lee
83353e3070
i965g: s/inttypes.h/stdint.h/
...
MSVC doesn't have either but Mesa has stdint.h at include/c99.
2010-04-20 17:22:26 -07:00
Vinson Lee
32f344f443
i965g: Remove unnecessary header.
2010-04-20 17:02:03 -07:00
Vinson Lee
a5460dc6d7
llvmpipe: Change return type of declaration to match code.
...
Commit 2142108e0e changed the return type
of llvmpipe_get_texture_image_address function but didn't change the
declaration.
Fixes build.
2010-04-20 16:40:55 -07:00
Brian Paul
2142108e0e
llvmpipe: code consolidation
2010-04-20 17:28:33 -06:00
Brian Paul
1cb80d31d3
llvmpipe: remove debug code and simplify
2010-04-20 17:19:30 -06:00
Brian Paul
7688a4749e
llvmpipe: fix cube face addressing bug
...
Fixes fd.o bug 27760 (pigit fbo-cubemap).
2010-04-20 17:15:33 -06:00
Brian Paul
c668a97ad5
llvmpipe: whitespace fix
2010-04-20 17:15:33 -06:00
Jakob Bornecrantz
71901594ed
gallium: Fix copy typo
2010-04-20 23:59:38 +01:00
Jakob Bornecrantz
b88ba89397
svga: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
997969b067
radeong: Minor clean up of winsys
...
Also try to wrap trace around driver on non-debug builds, its free.
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
1d98ce511d
nouveau: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
c408942c9c
i965g: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
1c68d1aa4c
i915g: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
fa2d84d2f7
st/egl: No need to use drm_api argument struct
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
71595a5f3f
st/egl: Use correct driver_name field to get kernel driver name
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
8a0c99b379
st/egl: Check for null destroy callback on api struct
2010-04-20 23:53:58 +01:00
Jakob Bornecrantz
cebfd1a0cf
targets: Use a valid winsys include path in Makefile.dri
2010-04-20 22:49:51 +01:00
Corbin Simpson
73c0f9f0f4
r300g: Spill a bit more info about implementation errors in surface_copy.
...
compiz appears to hit this. Weird.
2010-04-20 13:10:27 -07:00
Christoph Bumiller
3a5b82f335
nv50: make a working check for user memory vertex/index buffers
2010-04-20 22:08:10 +02:00
Christoph Bumiller
03e97e7f8d
nv50: fix FP result counting for depth output
2010-04-20 22:08:04 +02:00
Christoph Bumiller
3c9df0bda6
nv50: support vertex index bias
2010-04-20 22:07:58 +02:00
Brian Paul
caa05ef419
llvmpipe: fix depth+stencil logic error
...
If both Z-test and stencil-test were enabled, we were mis-computing
the vector of updated Z buffer values.
Fixes Z testing bug in progs/demos/fbotexture.c
2010-04-20 13:51:52 -06:00
Brian Paul
48f54ecb0c
llvmpipe: fix comment/typo
2010-04-20 13:51:52 -06:00
Brian Paul
db4ccc004a
llvmpipe: fix incorrect front-facing value for fragment shader
...
The TGSI convention is +1 for front-facing, -1 for back-facing
Fixes glean glsl1 gl_FrontFacing tests.
2010-04-20 11:44:01 -06:00
Brian Paul
ab065b933b
llvmpipe: rename mode -> interp
2010-04-20 11:23:53 -06:00
Brian Paul
3acb2b6b2f
llvmpipe: remove dead code/comment
2010-04-20 10:56:01 -06:00