summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_render.c
AgeCommit message (Collapse)Author
2010-02-28r300g: decouple vertex stream setup (PSC) and VS output mapping (VAP_OUT)Marek Olšák
Formerly known as vertex_format_state. These two are completely unrelated when using HWTCL and decoupling them makes the design less SWTCL-centric. When bypass_vs_clip_and_viewport gets removed, the PSC setup will no longer be a derived state. This change shouldn't make unbreaking SWTCL harder.
2010-02-28r300g: put validating buffers after flushingMarek Olšák
Also cleaning up the nasty validation process.
2010-02-27r300g: always emit the correct max vertex index to avoid DRM errorsMarek Olšák
Fixing bizarre reports that a vertex buffer is not large enough.
2010-02-27r300g: remove pointless "while"Marek Olšák
2010-02-24r300g: prevent CS overflow when emitting the draw packetsMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-02-23r300g: fix draw_elements for "start" != 0Marek Olšák
Reported-by: Andre Maasikas <amaasikas@gmail.com>
2010-02-22Revert "r300g: rebuild winsys/pipe buffer handling and add buffer map"Dave Airlie
This reverts commit fff5be8e7b4557c221f2425dcafc2e7cbbba76ba. Probably went too soon with this, dileX reported OA not working for him it works here fine, but the optimisations I wanted aren't working properly yet so I'll fix that now. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22r300g: rebuild winsys/pipe buffer handling and add buffer mapDave Airlie
This creates a cleaner winsys and drop the simple screen stuff. It makes r300g use pb_bufmgr structs and adds usage of the cached bufmgr for vertex/index buffers. It also avoids mapping too often. I'm not 100% sure this is perfect but it won't find its own bugs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22r3OOg: support rendering of more than 65535 vertices per draw call (almost)Marek Olšák
The path for VAP_ALT_NUM_VERTICES is also in place (and tested) but not enabled by default due to the missing support of this reg in the upstream kernel. Also, a non-zero BUFFER_BASE in the INDX_BUFFER packet3 hangs the machine. Am I missing something? Because of this, only draw_arrays can render more than 65535 vertices without the use of VAP_ALT_NUM_VERTICES.
2010-02-02gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca
2010-01-30r300g: Silence uninitialized variable warning.Vinson Lee
2010-01-28gallium: Enable multiple constant buffers for vertex and geometry shaders.Michal Krol
2010-01-28r300g: Fix bizarre half-flushes with immd mode.Corbin Simpson
2010-01-26r300g: Make vertex_format into an atom.Corbin Simpson
Some delicious hax here.
2010-01-25r300g: Finish and enable immediate mode.Corbin Simpson
Based on Marek's immd-mode patch.
2010-01-25Revert "r300g,radeong: finish and enable the immediate mode"Corbin Simpson
This reverts commit 112239e9a66a155d36fe2ad0ab130e6f26eff298.
2010-01-24r300g,radeong: finish and enable the immediate modeMarek Olšák
Nearly 100% performance increase in glxgears.
2010-01-24r300g: fix flushing harder.Dave Airlie
I swear ipers runs here after this commit. After we flush we need to redo the space check
2010-01-23r300: fix wrong call in last commitDave Airlie
2010-01-23r300g: fix up buffer emission ordering.Dave Airlie
This fixes the code space checking VBOs, then resetting the space list and space checking other buffers. it fixes demos/ipers Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-16r300g: Stop using indices.Corbin Simpson
Sorry, it was a good game, but it just doesn't work.
2010-01-16r300g: Respect fill modes in indices fallback.Corbin Simpson
2010-01-14r300g: Cleanup from last few commits.Corbin Simpson
Strangely enough, the code solidified pretty quickly.
2010-01-14r300g: Really destroy translated buffer at the end.Łukasz Krotowski
Note that indexSize is changed by r300_translate_elts(). Also make sure it's destroyed on errors.
2010-01-13r300g: Use indices to translate index buffers of ubytes.Corbin Simpson
progs/redbook/aapoly, among others, works fine now.
2010-01-13r300g: Disable immediate mode rendering for now.Corbin Simpson
Will re-enable when the bugs are ironed out.
2010-01-12r300g: Lower the immd mode threshold.Corbin Simpson
2010-01-12r300g: Switch to immediate mode for tiny renders.Corbin Simpson
Useful for e.g. blitter.
2010-01-10r300g: Don't bother testing for empty scissors.Corbin Simpson
If somebody goes through that much effort, they probably intended it. So humor them. :3
2010-01-10r300g: Atomize scissors.Corbin Simpson
Argfl. Some of this code is so questionable.
2010-01-10r300g: Atomize rasterizer.Corbin Simpson
I want to stab things now.
2010-01-05Merge commit 'origin/gallium-draw-retval'Keith Whitwell
Conflicts: src/gallium/drivers/identity/id_context.c
2010-01-01r300: Fix scons build.José Fonseca
2009-12-26r300g: fixup for GS additionsDave Airlie
draw_set_mapped_constant_buffer changed API
2009-12-21gallium: propogate draw retval changes into more driversKeith Whitwell
2009-12-18r300g: Fix provoking vertex for non-quads.Corbin Simpson
Read the comments. In short, we can't possibly pass piglit's glean/clipFlat without some help from Gallium and an API/spec change.
2009-12-18r300g: Respect provoking vertex for trifans.Corbin Simpson
Fixes part of piglit's clipFlat test; next up is to get quads right.
2009-12-18r300g: Eliminate a couple more asserts.Corbin Simpson
2009-12-18r300g: Nuke r300_vbo.Corbin Simpson
2009-12-15r300g: clamp vertex indices to [min,max] everywhereMarek Olšák
2009-12-06r300g: don't render if everything is culled by scissoringMarek Olšák
Otherwise a CS is refused by kernel 2.6.31 (and maybe all later versions, not sure).
2009-11-20r300g: Begin separating HW TCL and SW TCL state and setup.Corbin Simpson
This patch removes draw_context entirely from the HW TCL path and cleans up a few other things along the way. Hopefully, nothing got broken. Thanks to Marek Olšák for testing, review, and pointing out my bugs. :3
2009-11-08r300g: Fix up SW TCL rendering functions.Corbin Simpson
They don't work, but at least they're clean now.
2009-11-08r300g: Unify context names for counts.Corbin Simpson
From the SW TCL fixups.
2009-11-07r300g: Minor code cleanup to avoid confusion.Corbin Simpson
2009-11-07r300g: Comments.Corbin Simpson
2009-11-07r300g: Don't assert on oversized VBOs, just return FALSE.Corbin Simpson
2009-11-07r300g: s/false/FALSE/Corbin Simpson
Also s/true/TRUE/
2009-11-07r300g: Clean up indexbuf render, switch to RELOC macro.Corbin Simpson
2009-11-07r300g: Clean up r300_setup_vertex_buffers.Corbin Simpson