Commit graph

39613 commits

Author SHA1 Message Date
Alex Deucher
105ef5eb5e r600c: remove redundant state emit on evergreen
r700start3d already emits the context control packets
2010-09-13 12:06:34 -04:00
Christoph Bumiller
60f34e9f60 nv50: fix TXP depth comparison value 2010-09-13 17:26:41 +02:00
Christoph Bumiller
0b8170103c nv50: fix indirect CONST access with large or negative offsets 2010-09-13 17:26:41 +02:00
Christoph Bumiller
3b3c20744f nv50: MOV TEMP[0], -CONST[0] must be float32 negation 2010-09-13 17:26:41 +02:00
Christoph Bumiller
1f1411f2cc nv50: interp cannot write flags reg 2010-09-13 17:26:41 +02:00
Christoph Bumiller
cca3906a9b nv50: check for immediates when turning MUL ADD into MAD 2010-09-13 17:26:41 +02:00
Christoph Bumiller
98c87c382d nv50: handle TGSI EXP and LOG again 2010-09-13 17:26:41 +02:00
Kristian Høgsberg
7dcb305000 mesa: Revert accidentally committed vertex code chunk 2010-09-13 10:32:15 -04:00
Andre Maasikas
cdfe02d3fc r600c: eg: fix typo
probably copy/paste error
2010-09-13 16:55:58 +03:00
Andre Maasikas
629842b44c r600c: eg: 256 float4 constants may need more than 256 bytes 2010-09-13 16:29:44 +03:00
Andre Maasikas
c82beb436b r600c: eg - fix uninitialized variable 2010-09-13 16:19:18 +03:00
Kristian Høgsberg
4ebf07a426 glx: Don't destroy DRI2 drawables for legacy glx drawables
For GLX 1.3 drawables, we can destroy the DRI2 drawable when the GLX
drawable is destroyed.  However, for legacy drawables, there os no
good way of knowing when the application is done with it, so we just
let the DRI2 drawable linger on the server.  The server will destroy
the DRI2 drawable when it destroys the X drawable or the client exits
anyway.

https://bugs.freedesktop.org/show_bug.cgi?id=30109
2010-09-13 08:42:22 -04:00
Marek Olšák
0392e48867 r300g: fix SWTCL
https://bugs.freedesktop.org/show_bug.cgi?id=29901
2010-09-13 13:26:35 +02:00
José Fonseca
501d43028e llvmpipe: Unbreak rasterization on 64bit. 2010-09-13 12:03:35 +01:00
José Fonseca
91a9325761 gallium: Change the resource_copy_region semantics to allow copies between different yet compatible formats 2010-09-13 11:33:44 +01:00
Dave Airlie
61c2861b4e r600g: evergreen fixup dsa state for running query.
evergreen is always the same as r700 here.
2010-09-13 19:57:29 +10:00
Andre Maasikas
2471d0d6c5 r600c: remove stray unmap call
no idea how/why it got there
2010-09-13 12:42:25 +03:00
José Fonseca
b97c75e6a3 llvmpipe: use gcc asm only with gcc 2010-09-13 09:24:09 +01:00
Marek Olšák
6990148b12 r300g: print unassigned FS inputs for DBG_RS 2010-09-13 09:55:14 +02:00
Marek Olšák
ae1aa14965 r300g: fix map_buffer
https://bugs.freedesktop.org/show_bug.cgi?id=30145
2010-09-13 07:52:13 +02:00
Marek Olšák
185434fbe8 r300/compiler: fix warnings 2010-09-13 07:52:13 +02:00
Marek Olšák
ab7cc44580 r300g: add new debug options for dumping scissor regs and disabling CBZB clear 2010-09-13 07:49:43 +02:00
Marek Olšák
c3c5646b93 r300g: skip rendering if CS space validation fails
radeon_cs_space_check flushes the pipe context on failure, retries
the validation, and returns -1 if it fails again. At that point, there is
nothing we can do, so let's skip draw operations instead of getting stuck
in an infinite loop.

This code path ideally should never be hit.
2010-09-13 07:49:43 +02:00
Marek Olšák
317680c6fb r300g: remove u_upload_flush from r300_draw_arrays
This a leftover probably and is unnecessary, since we flush u_upload_mgr
in r300_flush.
2010-09-13 07:49:43 +02:00
Vinson Lee
b4f7f059c7 nvfx: Remove unused variables. 2010-09-12 21:48:40 -07:00
Vinson Lee
89e138b1c4 nvfx: Move declaration before code.
Fixes SCons build.
2010-09-12 21:39:21 -07:00
Keith Whitwell
c4046d4fda llvmpipe: introduce tri_3_4 for tiny triangles 2010-09-12 15:03:50 +01:00
Keith Whitwell
4b56e86e67 llvmpipe: allow tri_3_16 at any 4-aligned location within a tile
Doesn't require 16-alignment, so catch more cases.
2010-09-12 15:03:49 +01:00
Keith Whitwell
26b663c2aa llvmpipe: refactor tri_3_16
Keep step array as a set of four m128i's and reuse throughout the
rasterization.
2010-09-12 15:03:49 +01:00
Keith Whitwell
67b957781d llvmpipe: pass linear masks to fragment shader
Fragment shader can extract the correct bits for each quad.
2010-09-12 15:03:49 +01:00
Keith Whitwell
4b99b9f5ff llvmpipe: fix warnings on both 32 and 64 bit builds 2010-09-12 15:01:41 +01:00
Keith Whitwell
51b1d4f03c llvmpipe: fix wierd performance regression in isosurf
I really don't understand the mechanism behind this, but it
seems like the way data blocks for a scene are malloced, and in
particular whether we treat them as stack or a queue, and whether
we retain the most recently allocated or least recently allocated
has a real affect (~5%) on isosurf framerates...

This is probably specific to my distro or even just my machine,
but none the less, it's nicer not to see the framerates go in the
wrong direction.
2010-09-12 14:58:43 +01:00
Christoph Bumiller
1fa812d84a nv50: match TEMP limit with nv50 ir builder
Mesa doesn't respect it anyway, but this makes it assert rather
than threads access areas of l[] that don't belong to them.
2010-09-12 11:41:57 +02:00
Christoph Bumiller
fdb00ac1ef nv50: newlines in shader bincode printing 2010-09-12 11:41:57 +02:00
Christoph Bumiller
d4fd11a628 nv50: cannot move from local mem to output reg directly 2010-09-12 11:41:57 +02:00
José Fonseca
67763488b1 pb: Fix the build, and add notes. 2010-09-12 10:37:06 +01:00
José Fonseca
853953dc3c llvmpipe: Only generate the whole shader specialization for opaque shaders.
If not opaque, then the color buffer will have to be read any way,
therefore the specialization is pointless.
2010-09-12 10:15:48 +01:00
Dave Airlie
b5fcf0c8e0 pb: add void * for flush ctx to mapping functions
If the buffer we are attempting to map is referenced by the unsubmitted
command stream for this context, we need to flush the command stream,
however to do that we need to be able to access the context at the lowest
level map function, currently we set the buffer in the toplevel map, but this
racy between context. (we probably have a lot more issues than that.)

I'll look into a proper solution as suggested by jrfonseca when I get some time.
2010-09-12 13:32:43 +10:00
Xavier Chantry
9b39fb1b61 nv50: fix size of outputs_written array 2010-09-12 00:59:50 +02:00
Christoph Bumiller
fc31a25afa nv50: minor compiler fixes and cleanups 2010-09-12 00:59:49 +02:00
Christoph Bumiller
7a4a537be1 nv50: reduce bb_reachable_by runtime from pot to linear
As a by-product, remove the memory leak of nv_basic_blocks.
2010-09-12 00:59:49 +02:00
Luca Barbieri
95555ed03e nv30: fix breakage due to 10 texcoord support on nv40 2010-09-11 21:11:03 +02:00
Chia-I Wu
c34225974b Add missing files to the tarball file lists. 2010-09-12 02:31:33 +08:00
Chia-I Wu
19b2cfd6f6 mesa: Fix depend.es[12] generation when LLVM is enabled.
"llvm-config --cflags" outputs -f options, which conflict makedepend.
Clean up compiler flags and append LLVM_CFLAGS to the new xxx_CFLAGS
instead of xxx_CPPFLAGS, where xxx may be MESA, ES1, or ES2.
2010-09-12 02:31:33 +08:00
Tilman Sauerbeck
33b1d14913 r600g: Undo bo placement change.
This reverts a part of e795ca8f31
that causes artefacts and a performance drop.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-09-11 18:40:45 +02:00
José Fonseca
3ad3cbfb12 llvmpipe: Silence some warnings. 2010-09-11 13:47:58 +01:00
José Fonseca
552e2b5065 gallivm: nr_channels is only valid for formats with plain layout.
This is erroneously throwing non plain formats out of the faster
AoS sampling path.

Doing 8bit interpolation for single channels such as L8 should be no
worse than with floating point. But this may need more investigation.
2010-09-11 13:34:54 +01:00
José Fonseca
74f6edaee4 gallivm: Use const keyword on swizzles. 2010-09-11 13:31:35 +01:00
José Fonseca
697fdf3fff gallivm: Allow to TGSI AoS translation to happen in BGRA ordering.
Or any ordering.
2010-09-11 13:31:17 +01:00
José Fonseca
277d768d10 llvmpipe: Don't store display the alpha ref value in the key.
It's never used.
2010-09-11 13:30:14 +01:00