Commit graph

8577 commits

Author SHA1 Message Date
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
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
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
Jakob Bornecrantz
89aaaab79f gallium: Add static get option helpers 2010-04-23 21:57:49 +01:00
Jakob Bornecrantz
7159303dbf gallium: Add option to not print options 2010-04-23 21:57:49 +01:00
José Fonseca
2ce1d6696b gallium: s/free/FREE/ and same for friends.
Based on Stephen Johnson's feedback.
2010-04-23 21:53:08 +01:00
Stephen Johnson
c09f370519 draw: use FREE() instead of free() 2010-04-23 19:34:55 +01:00
Brian Paul
f855193796 llvmpipe: rename texture refs to resource refs 2010-04-23 12:29:31 -06:00
Alan Hourihane
00f8e5764d llvmpipe: update for half float formats 2010-04-23 19:26:03 +01:00
José Fonseca
f73feb9cd6 st/xlib: Try to propagate failure to create framebuffer.
Doesn't help much, since it is ignored by st_framebuffer_validate.
2010-04-23 17:08:11 +01:00
José Fonseca
d7996beb4c softpipe: YUV textures should be supported. 2010-04-23 17:08:11 +01:00
José Fonseca
405f925d4e sw/xlib: Fallback to XPutImage when shmget fails.
After continuously running regression tests on Ubuntu for 2 days, shmget
mysteriously starts to fail. Even when the X server is reset.

This allow rendering to proceed, albeit using a slower presentation path.
2010-04-23 17:08:11 +01:00
Brian Paul
158f9d56e0 llvmpipe: increase max 2D texture / surface size to 4K x 4K 2010-04-23 09:13:27 -06:00
Brian Paul
4a72ec49f6 llvmpipe: rename MAXWIDTH, MAXHEIGHT 2010-04-23 09:13:26 -06:00
Brian Paul
2de31f2bf2 llvmpipe: rename lp_tile_size.h to lp_limits.h
Collect the various driver limits in one place since.
2010-04-23 09:13:26 -06:00
Brian Paul
71dfbb608a llvmpipe: move LP_MAX_TEXTURE_x_LEVELS, etc to lp_tile_size.h 2010-04-23 09:13:26 -06:00
Vinson Lee
749a8825a0 llvmpipe: Remove unused variable. 2010-04-23 00:59:12 -07:00
Zack Rusin
021e0dc78b gallivm: implement indirect addressing over temporaries
a bit more involved than indirect addressing over consts, but still
fairly reasonable. we allocate an array instead of individual alloca's,
and we do it only if the shader does indirect addressing.
2010-04-22 18:36:07 -04:00
Zack Rusin
ded2374e67 gallivm: implement indirect addressing over constants
implement indirect addressing (ARL and ARR instructions) when used
with CONST's. indirect addressing over other vars (temps, inputs, outputs)
is not supported yet.
2010-04-22 17:33:14 -04:00
Brian Paul
d888812324 gallium: use better param name 2010-04-22 14:39:12 -06:00
Brian Paul
19b26cb0a2 gallivm: remove Z/stencil special case code in lp_build_sample_offset()
Fixes progs/tests/zreaddraw.c and progs/demos/shadowtex.c
2010-04-22 14:37:50 -06:00
José Fonseca
c059565054 llvmpipe: Undo zs tiling changes.
tile_w/tile_h have different meaning there.

This partialy reverts commit ccdc6b5913.
2010-04-22 20:38:36 +01:00
José Fonseca
cb384ae8b2 gallium/docs: Unswap PIPE_BIND_SHARED's comment. 2010-04-22 19:51:10 +01:00
Brian Paul
f836a5f60b gallium/docs: many updates to screen.rst
Put PIPE_BIND_ and PIPE_TEXTURE_GEOM_ prefixes on token names so
that they can be found with grep.  This needs to be done in more places.

Corrected/improved a lot of information and grammer.

I don't know how to properly format everything - someone else can take
care of that.
2010-04-22 12:47:10 -06:00
José Fonseca
cdaceaafee llvmpipe: Portability fixes. 2010-04-22 19:25:00 +01:00
José Fonseca
ccdc6b5913 llvmpipe: Fix rendering to non 32bpp formats.
Tiled layout always used 32bpp, therefore linear/tiled strides are not
related.
2010-04-22 19:25:00 +01:00
Zack Rusin
18a4a83dda gallivm: update comments 2010-04-22 13:57:18 -04:00
Zack Rusin
6d2e09fdc2 gallivm: fix nested cont statements 2010-04-22 13:57:18 -04:00
Zack Rusin
3a423dcf9d gallivm: fix nested break statemants 2010-04-22 13:57:18 -04:00
Zack Rusin
63aa9b505a gallivm: make sure we return the correct type when approximating log's 2010-04-22 13:57:18 -04:00
José Fonseca
8bee4c7718 llvmpipe: Use resource_is_texture() consistently.
Otherwise slightly difference order causes assertion failures.

Also remove mentions of PIPE_BIND_SCANOUT/PIPE_BIND_SHARED. They are not
propoer bind flags and will likely be deprecated. If surfaces should
be passed to the winsys then they should have the DISPLAY_TARGET flag
set, which is a proper bind flag.
2010-04-22 18:42:03 +01:00
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