José Fonseca
a9e0fda070
llvmpipe: Actually flush in lp_resource_copy()
...
The cpu_access is redundant in a software rasterizer.
2010-06-28 16:33:21 +01:00
José Fonseca
8be645d53a
llvmpipe: Ensure outdated framebuffer state is not reused in lp_setup_bind_framebuffer().
...
We were starting a scene whenever lp_setup_get_vertex_info() was called by
the draw module. So when when all primitives were culled/clipped, not only
did we create a new scene for nothing, but we end up using the old scene
with the old framebuffer state instead of a new one.
Fix consists in:
- don't call lp_setup_update_state() in lp_setup_get_vertex_info() -- no
longer necessary
- always setting the scene state before binning a command -- query
commands were bypassing it
- assert no old scene is reused in lp_setup_bind_framebuffer()
2010-06-28 16:33:05 +01:00
Marek Olšák
ce7a70b8b4
r300g: fix a compile error on non-debug builds
2010-06-27 17:15:23 +02:00
Marek Olšák
57c3f70018
util: fix a memory leak in blitter
2010-06-27 15:13:14 +02:00
Marek Olšák
0a19d57b84
r300g: separate the hyperz state and pipelined FB regs out of the FB state
2010-06-27 15:13:14 +02:00
Marek Olšák
808ad22592
r300g: release referenced objects in destroy_context
2010-06-27 15:13:13 +02:00
Marek Olšák
639a7daa85
r300g: reference surfaces in set_framebuffer_state
2010-06-27 15:13:13 +02:00
Marek Olšák
408a886127
r300g: group debug messages
2010-06-27 15:13:13 +02:00
Marek Olšák
0a9510814e
r300g: turn rasterizer state into a command buffer
2010-06-27 15:13:13 +02:00
Marek Olšák
c200c47e6c
r300g: move emission of the MSPOS regs into the framebuffer state
...
Now the question is whether we are allowed to ignore gl_rasterization_rules and
pipe_rasterizer_state::multisample. The former is invariant anyway and
I think the latter would need re-emitting the AA state which is quite costly,
considering that it implicitly flushes the whole pipeline (all AA regs
in the AA state are *unpipelined*).
2010-06-27 15:13:13 +02:00
Marek Olšák
bb47d1c26f
r300g: turn invariant state into a command buffer
2010-06-27 15:13:12 +02:00
Marek Olšák
8959f48bce
r300g: initialize some crucial state in the first CS
2010-06-27 15:13:08 +02:00
Marek Olšák
fcacc6a076
r300g: introduce VAP invariant state
...
Unlike other invariant states, this one must be emitted after VAP flush.
2010-06-26 17:57:20 +02:00
Marek Olšák
8350d1d6f1
r300g: immediate mode cleanup
2010-06-26 17:47:32 +02:00
Marek Olšák
5acdfdbf42
r300g: update my notes about fastfill and zbuffer compression
2010-06-26 17:43:58 +02:00
Marek Olšák
f39800b339
r300g: enum r300_blitter_op is a bitmask
2010-06-26 17:35:56 +02:00
Marek Olšák
8924201530
draw: fix build with llvm and make
2010-06-26 14:01:41 +02:00
Vinson Lee
3443b581fb
draw: Remove unnecessary header.
2010-06-26 00:31:57 -07:00
Zack Rusin
4503bd33da
draw: deleted by mistake
2010-06-25 20:06:53 -04:00
Zack Rusin
a5c44986a3
draw: initialize headers in the none post paths as well
2010-06-25 19:58:09 -04:00
Zack Rusin
8ebfcf31eb
draw: limit the number of vertex shader variants kept around
...
we used to create and cache unltimited number of variant, this
change limits the number of variants kept around to a fixed number.
the change is based on a similar patch by Roland for llvmpipe fragment
shaders.
2010-06-25 19:33:27 -04:00
Zack Rusin
5cf1921e6d
draw: initialize vertex header
2010-06-25 19:33:27 -04:00
Brian Paul
4ae530370d
gallium/util: fix pipe_sampler_view_reference() calls
...
The conditionals aren't needed.
2010-06-25 14:12:34 -06:00
Brian Paul
e099ed2c64
softpipe: rename a var
2010-06-25 09:56:22 -06:00
Chia-I Wu
7a9246c5d7
draw: Work around an invalid write.
...
SSE vertex shader does not seem to honor the execution mask. Pad the
output array as a workaround.
2010-06-25 23:17:18 +08:00
Brian Paul
cc8c142e2a
llvmpipe: fix comment typo
2010-06-25 08:47:22 -06:00
Brian Paul
fd60bf8e33
softpipe: fix comment typo
2010-06-25 08:47:22 -06:00
Marek Olšák
5d1cc93077
r300g: a couple more chipsets do not have HiZ RAM
2010-06-24 22:24:22 +02:00
Corbin Simpson
474dc40fb4
gallium/docs: Vertex data formats.
...
I'm not sure if I really got it right. This seems like one of those
"Duh, of course it works that way" things, but I'd like the
documentation to be readable by people not acquainted with OGL/D3D.
2010-06-24 07:57:30 -07:00
Corbin Simpson
484bb0ea58
glhd: Add test for logicop enable.
...
Only for first RT at the moment, as there is no trivial way in galahad
to look at framebuffer state and (sadly) people don't usually calloc
their CSOs, so flags could be wrongly set.
On the other hand, of course, galahad will hopefully encourage more
people to calloc their CSOs. :3
2010-06-24 07:22:29 -07:00
Corbin Simpson
49735d1c6c
gallium/docs: Lops override the rest of the blending state when enabled.
2010-06-24 07:22:29 -07:00
Brian Paul
05a18f48e5
gallium/docs: updated remaining semantic label docs
2010-06-24 07:50:29 -06:00
nobled
fd7de146f6
pipe: Add PIPE_OS_HURD
...
One tiny step toward porting Gallium to the GNU/Hurd kernel
(and fixing Debian bug #585618 ).
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-06-24 06:45:36 -07:00
Corbin Simpson
06a75bd873
gallium/docs: Add lop table.
...
Was feeling kind of weird without it.
2010-06-24 06:43:50 -07:00
Corbin Simpson
1e10464557
gallium/docs: Slight clarification and formatting for Blend.
2010-06-24 06:43:50 -07:00
Marek Olšák
f2122d4724
r300g: remove an XXX comment
2010-06-24 06:15:45 +02:00
Marek Olšák
69adebf594
r300g: move AA registers into the new AA state
2010-06-24 06:10:47 +02:00
Marek Olšák
93bce03b27
r300g: separate the cache flush from the framebuffer state
2010-06-24 06:10:47 +02:00
Marek Olšák
a2f14153cc
r300g: reorder and cleanup register writes everywhere
2010-06-24 06:10:47 +02:00
Marek Olšák
6b15a8d2af
r300g: add "has HiZ" flag, add ZMask regs
2010-06-24 06:10:47 +02:00
Jakob Bornecrantz
9ca563a9a8
nouveau: Remove reference to drm_api
2010-06-24 02:36:30 +02:00
Jakob Bornecrantz
09b73b2a5f
i965g: Remove last references to drm_api
2010-06-24 02:30:00 +02:00
Jakob Bornecrantz
44c64596d1
swrastg: Use target-helpers
2010-06-24 02:19:44 +02:00
Jakob Bornecrantz
57d14f2fbb
gallium: Use debugging helper in all drm targets
2010-06-24 02:19:43 +02:00
Jakob Bornecrantz
ea1786ec5b
gallium: Add debug target helper
2010-06-24 02:19:38 +02:00
Jakob Bornecrantz
59981d418f
gallium: Fix scons build
2010-06-24 02:15:50 +02:00
Jakob Bornecrantz
e47d32d721
gallium: Remove drm_api and all references to it
2010-06-24 02:15:50 +02:00
Jakob Bornecrantz
92fde20de3
r600g: Move bootstrap code to target
2010-06-24 02:15:50 +02:00
Brian Paul
7315300fa5
gallium/docs: document TGSI_SEMANTIC_EDGEFLAG
2010-06-23 17:38:58 -06:00
Brian Paul
a544a8a82a
gallium/docs: update TEXTURE_SHADOW_MAP MAX_PREDICATE_REGISTERS
2010-06-23 17:38:42 -06:00