summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
AgeCommit message (Collapse)Author
2010-01-16r300g: Respect fill modes in indices fallback.Corbin Simpson
2010-01-15Merge branch 'gallium-noconstbuf'Roland Scheidegger
Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c src/mesa/state_tracker/st_draw_feedback.c
2010-01-13r300g: Account for CS space used per atom.Corbin Simpson
Oh yeah, those atoms are startin' to pay off. The main obstacle now for OA playability is the absurdly low default mouse sensitivity, IMO. Not totally smooth yet, but getting there.
2010-01-12r300g: only emit scissor when neededMarek Olšák
Reverting some bits from ce1c493ff8fad4b62e2b66f06636ac6560a6e0ad. Given the latest fixes, it's not needed to always emit scissor, really.
2010-01-12r300g: Always emit scissors.Corbin Simpson
Save some code, improve FPS, and fix piglit tests. Everybody wins.
2010-01-11r300g: Avoid segfault on binding null RS state.Corbin Simpson
2010-01-11gallium: remove const qualifier from pipe_buffer argument in set_constant_bufferRoland Scheidegger
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: Move TCL bypass switch to main context.Corbin Simpson
2010-01-10r300g: Atomize viewport.Corbin Simpson
Goddammit, some of these hax are really annoying.
2010-01-10r300g: Atomize rasterizer.Corbin Simpson
I want to stab things now.
2010-01-10r300g: Atomize DSA.Corbin Simpson
Also a bit of ztop.
2010-01-10r300g: Atomize UCP.Corbin Simpson
Meh.
2010-01-10r300g: Atomize blend color.Corbin Simpson
2010-01-10r300g: Start using atoms.Corbin Simpson
No benefits yet.
2010-01-06r300g: if no DS buffer is set, disable reading from and writing to itMarek Olšák
It fixes another "Bad CS" issue.
2010-01-06r300g: disable the rasterization of WPOS if it's unused by the FSMarek Olšák
2010-01-06r300g: add WPOSMarek Olšák
2010-01-06r300g: optimize blending by conditionally disabling reads from the colorbufferMarek Olšák
2010-01-06r300g: optimize blending by discarding pixels that don't change the colorbufferMarek Olšák
Let's get some performance out of the blender.
2010-01-06r300g: fix blending when SRC_ALPHA_SATURATE is usedMarek Olšák
2010-01-06gallium: remove PIPE_TEX_FILTER_ANISOLuca Barbieri
This patch removes PIPE_TEX_FILTER_ANISO. Anisotropic filtering is enabled if and only if max_anisotropy > 1.0. Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be considered equivalent, and meaning to turn off anisotropic filtering. This approach has the small drawback of eliminating the possibility of enabling anisotropic filter on either minification or magnification separately, which Radeon hardware seems to support, is currently support by Gallium but not exposed to OpenGL. If this is actually useful it could be handled by splitting max_anisotropy in two values and adding an appropriate OpenGL extension. NOTE: some fiddling & reformatting by keithw to get this patch to apply. Hopefully nothing broken in the process.
2009-12-24gallium: adapt drivers to pipe_constant_buffer removalRoland Scheidegger
2009-12-22Merge branch 'gallium-edgeflags'Roland Scheidegger
Conflicts: src/mesa/state_tracker/st_draw.c
2009-12-19r300g: add texture compare modesMarek Olšák
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-19gallium: fix up drivers for edgeflag changesRoland Scheidegger
several drivers which chose to ignore edgeflags might require some more work, while edgeflags never worked there they might now crash.
2009-12-15r300g: if no colorbuffers are set, disable blending and set the color mask to 0Marek Olšák
This seems to be the only way to disable the first colorbuffer.
2009-12-15r300g: remove unnecessary flush in set_sampler_texturesMarek Olšák
2009-12-09r300g: fix routing of vertex streams if TCL is bypassedMarek Olšák
Generating mipmaps finally works, among other things. Yay!
2009-12-08Merge branch 'gallium-strict-aliasing'Roland Scheidegger
2009-12-08gallium: fix more potential strict aliasing issuesRoland Scheidegger
In particular, gcc man page warns that union a_union { int i; double d; }; int f() { double d = 3.0; return ((union a_union *) &d)->i; } "might" not be ok (why not?), even though it doesn't seem to generate any warnings. Hence don't use this and do the extra step to actually use assignment to get the values in/out of the union. This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5.
2009-12-07gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger
use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place.
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-12-06r300g: remove redundant code and clean upMarek Olšák
2009-12-05r300g: Need to emit a hardware scissor rectangle even if scissor is disabled.Michel Dänzer
Just make it cover the whole framebuffer in that case. Otherwise the kernel CS checker may complain, e.g. running progs/demos/gearbox. That runs fast now here, but doesn't look right yet.
2009-12-02r300g: No vertex textures here.Corbin Simpson
2009-12-01r300: Update for renamed sampler/texture state setters.Michal Krol
2009-11-21r300g: Build fix.Corbin Simpson
Oops.
2009-11-20r300g: fix updating a vertex formatMarek Olšák
We must update PSC when we change the vertex format, e.g. vertex colors from RGBA to BGRA.
2009-11-20r300g: add texture lod clampingMarek Olšák
These now work: piglit/lodclamp piglit/levelclamp
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-20r300g: fix rectangle textures on r3xxMarek Olšák
Adapted from Maciej Cencora's patch.
2009-11-08r300g: Unify context names for counts.Corbin Simpson
From the SW TCL fixups.
2009-11-07r300g: VBOs WIPMaciej Cencora
2009-11-07r300g: add missing flushMaciej Cencora
2009-11-04r300g: add polygon modeMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-11-04r300g: add color channel maskingMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-11-01r300g: Miscellania. Avoid draw segfaults, s/true/TRUE/, etc.Corbin Simpson
Cleared out my git stash.