Zack Rusin
d2b6ed7c4d
gallivm: fix nested break and continue statements
...
we were resetting the mask on each new break/continue statement within
the same scope. we always need to and the current execution mask
with the current break/continue mask to get the correct result (the
masks are always ~1 initially)
2010-05-02 21:40:30 -04:00
Jakob Bornecrantz
c2c1f60391
identity: Move sampler view create and destroy to id_objects.c
2010-05-03 00:27:38 +01:00
Jakob Bornecrantz
59b160d286
identity: s/texture/resource/
2010-05-03 00:27:37 +01:00
Jakob Bornecrantz
eda7c2506a
identity: Whitespace & Style
2010-05-03 00:27:37 +01:00
Luca Barbieri
d0f9e7521c
gallium/util: print \n after DXTn printf
...
Re-add commit 2d65a7caf9
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-03 00:14:20 +01:00
Xavier Chantry
5362f77b47
llvmpipe: add lp_test_* to .gitignore
...
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-03 00:13:36 +01:00
José Fonseca
b84590994c
svga: Remove the screen private context.
...
All affected operations have already been moved to context.
More cleanup work can be done, in particular with the buffer transfers.
2010-05-03 00:13:36 +01:00
José Fonseca
49e37469bd
svga: Remove empty file.
2010-05-03 00:13:36 +01:00
José Fonseca
7e28479c3a
svga: Update flags documentation.
2010-05-03 00:13:36 +01:00
José Fonseca
4885cd4ff7
softpipe: Fix alpha blending for formats without alpha channel.
...
Don't use the dst alpha channel from the tile cache when it does not
exist in the true format.
2010-05-03 00:13:36 +01:00
José Fonseca
59253a79d8
llvmpipe: Fix alpha blending for formats without alpha channel.
...
Don't use the dst alpha channel from the swizzled tile when it does not
exist in the true format.
2010-05-03 00:13:36 +01:00
Vinson Lee
6edb18ee35
svga: Include svga_surface.h in svga_screen.c.
...
Fixes svga_screen_init_surface_functions implicit declaration warning.
2010-05-02 13:34:50 -07:00
Vinson Lee
1a30d98159
r300g: Remove unnecessary header.
2010-05-02 13:30:40 -07:00
Xavier Chantry
38e3fb23da
Update dri state tracker to use new API aware context create
2010-05-02 16:27:42 -04:00
Marek Olšák
b08b7b7377
r300g: do not validate buffers in check_cs
...
It's already done in r300_emit_buffer_validate.
This also fixes Total Annihilation 3D on debug builds at least.
2010-05-02 20:59:47 +02:00
Marek Olšák
3b2cf97c5c
r300g: fix surface_copy for compressed formats
...
No accelerated blitting for these, it's too messy.
2010-05-02 20:59:47 +02:00
José Fonseca
316b6fa509
retrace: Add sampler_view_destroy
2010-05-02 15:32:09 +01:00
José Fonseca
db1ed3da6c
trace: Fix typo in method name.
2010-05-02 15:32:09 +01:00
Marek Olšák
9d33605673
r300g: always set the pitch of the first miplevel in the tiling flags
...
This further reduces the number of DRM calls and flushes.
2010-05-02 13:27:57 +02:00
Marek Olšák
82027b2027
Revert "r300g: disable point sprites (again)"
...
This reverts commit 3e0f1719d4 .
2010-05-02 12:56:34 +02:00
Marek Olšák
68e720e12d
r300g: merge VS output mapping state (VAP) to rasterizer block state (RS)
...
These two should be tied together because what's set in VAP or stuffed in GA
should be rasterized in RS. Not doing so causes a hardlock.
The reason for the merge is that if stuffed texture coordinates (e.g. point
sprite texgen) happen to occupy the texcoord slot dedicated to fog or wpos,
the two must be relocated to other free slots, which needs remapping the vertex
shader outputs.
The rasterizer code is now literally a sequence read-rasterize-write.
2010-05-02 12:56:34 +02:00
Marek Olšák
35232172db
r300g: inline update_derived_shader_state
2010-05-02 12:56:34 +02:00
Marek Olšák
45d79af644
r300g: fix segfault when resizing a DRI2 framebuffer
...
Resetting tiling flags might happen after a texture is destroyed...
Looking at the kernel sources, we don't actually need to reset the tiling
flags.
2010-05-02 12:56:34 +02:00
Marek Olšák
5c6ea462be
r300g: cache tiling flags to reduce the number of DRM calls
2010-05-02 12:56:33 +02:00
Vinson Lee
3c86e2f1dc
i965g: s/sprintf/util_snprintf/
2010-05-02 00:21:04 -07:00
Vinson Lee
70c7531051
llvmpipe: Remove unused variable.
2010-05-01 15:12:45 -07:00
Jakob Bornecrantz
cd502e5f5c
swrastg: Use trace
2010-05-01 11:31:59 +01:00
Christoph Bumiller
f5a4d70189
nv50: raise constant buffers size to maximum
...
Removed the param heaps, haven't been using them for a long
time now.
2010-04-30 22:57:23 +02:00
Christoph Bumiller
75ee309ca9
nv50: relax restriction on surface_copy format equality a bit
2010-04-30 22:50:42 +02:00
Christoph Bumiller
6df1e5c4aa
nv50: don't segfault on OPCODE_END for empty programs
2010-04-30 22:50:31 +02:00
Brian Paul
d225221e70
llvmpipe: fix out-of-bounds texture sampling
...
If we're using a wrap mode in which border color sampling is possible
it means that texcoords may be outside of the texture image bounds.
Fetching the texel may result in a segfault.
Use the 'use_border' variable to catch such texcoords and replace
the texel offset with zero (which will be in bounds).
Fixes segfault in Lightsmark demo, fd.o bug 27877.
2010-04-30 13:59:07 -06:00
Brian Paul
3a757b722d
llvmpipe: added lp_build_sample_nop() for debugging
2010-04-30 13:59:07 -06:00
Jakob Bornecrantz
58590a112a
svga: Fix index offset
2010-04-21 01:14:03 +01:00
José Fonseca
e9bf09a98a
draw: Fix memory leaks in llvm code.
2010-04-30 19:32:20 +01:00
Jakob Bornecrantz
ed94c26ce8
svga: Init surface functions
2010-04-20 23:16:20 +01:00
Jakob Bornecrantz
f86def5e74
util: Add missing break statement in u_caps.c
...
Thanks Vinson.
2010-04-30 14:46:18 +01:00
Jakob Bornecrantz
f7cf8b4658
util: Update caps after helpfull input
...
In no particular order:
* Make list const
* Add function comments
* Clearly state that demo lists are not complete
* Fix whitespace
* Use __FUNCTION__ instead of __func__
* Add unimplemented check which always fail
Thanks Brian and Keith.
2010-04-29 17:59:47 +01:00
Jakob Bornecrantz
110a956a64
util: Add small caps checker helper
2010-04-29 17:00:21 +01:00
Jakob Bornecrantz
3865e3abd4
util: Format error format string as the rest of the pipe formats
2010-04-29 17:00:21 +01:00
Jakob Bornecrantz
c4e89d130f
softpipe & llvmpipe: Enable SM3 cap
2010-04-29 17:00:21 +01:00
Zack Rusin
b7618c89b1
draw llvm: stay in bounds even if fetch_count % 4 != 0
...
if fetch_count % 4 != 0 then on the last iteration we fetch garbage.
this patch makes sure we stay within bounds
2010-04-29 11:53:32 -04:00
Brian Paul
4ccee74725
cso: remove commented-out code, update function docs
2010-04-29 09:39:17 -06:00
Brian Paul
60a6bfefd1
gallivm: add some assertions in special-case sampler code
2010-04-29 09:39:17 -06:00
Brian Paul
ba6d8448e1
llvmpipe: fix texture/display target memory leak
2010-04-29 09:10:05 -06:00
Michel Dänzer
7327a84b18
gallium/draw: Fix PPC compiler warning.
2010-04-29 10:05:49 +02:00
Michel Dänzer
63d1134c86
gallium/draw: Fix PPC build failure.
2010-04-29 10:05:48 +02:00
Marek Olšák
9be226c8b5
r300g: fix compiler error
...
Ouch.
2010-04-29 07:32:56 +02:00
Marek Olšák
18a5da7a65
r300g: use the enum for color swizzles in the rasterizer
2010-04-29 07:18:37 +02:00
Marek Olšák
04c1536bf7
r300g: rasterizer debug logging
2010-04-29 06:57:08 +02:00
Marek Olšák
9dd06b8da4
r300g: fix tests/yuvrect and possibly even rendering to YUV textures
2010-04-29 05:26:41 +02:00