summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_emit.c
AgeCommit message (Collapse)Author
2009-12-09r300g: always disable unused colorbuffersMarek Olšák
2009-12-09r300g: make pow(0,0) return 1 instead of NaN in the R500 fragment shaderMarek Olšák
Unfortunately we can't fix this easily in the R300 fragment shader, and it's probably not worth the effort.
2009-12-09r300g: clean up r300_emit_aosMarek Olšák
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-04radeong: flush CS if a buffer being mapped is referenced by itMarek Olšák
Also, overlapping occlusion queries seems to work now.
2009-12-04r300g, radeong: fix the CS overflowMarek Olšák
2009-12-02gallium: adapt drivers to interface cleanupsRoland Scheidegger
2009-11-27r300g,llvmpipe: fix some more merge problemsRoland Scheidegger
2009-11-23r300g: use util_bitcount()Brian Paul
2009-11-20r300g: add texture lod clampingMarek Olšák
These now work: piglit/lodclamp piglit/levelclamp
2009-11-20r300g: emit R300_TEX_ENABLE to indicate there are no textures boundMarek Olšák
Previously, this reg wasn't emitted at all if texture_count == 0.
2009-11-20r300g: Texrect factor cleanup.Corbin Simpson
(0, 0, 0, 1) is a much saner default value, and texrect factors only need to be (1/s, 1/t, 0, 1).
2009-11-20r300g: fix rectangle textures on r3xxMarek Olšák
Adapted from Maciej Cencora's patch.
2009-11-20r300g: Clean up bitcounting function.Corbin Simpson
I didn't see this in u_math; surely somebody else has this wheel reinvented elsewhere.
2009-11-20r300g: Use MAX3 and MIN3.Corbin Simpson
2009-11-20r300g: set better values in the R300_VAP_CNTL registerMarek Olšák
2009-11-08r300g: Unify context names for counts.Corbin Simpson
From the SW TCL fixups.
2009-11-08r300g: Enable PSC/RS dump with new debugging flags.Corbin Simpson
2009-11-07r300g: Don't pass hw_prim around in the context.Corbin Simpson
And some other fixes.
2009-11-07r300g: VBOs WIPMaciej Cencora
2009-11-04r300g: add polygon modeMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-11-04r300g: fix the size of CS when emitting the fragprog constant bufferMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-11-04r300g: set the correct offset in a colorbuffer surfaceMarek Olšák
Suggested by Joakim Sindholt. Also, put flushing of colorbuffers _before_ the framebuffer state setup, suggested by docs. 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.
2009-11-01r300g: fix geometry corruptionsMaciej Cencora
PVS flush is needed before changing the vertex shader or vertex shader constants.
2009-11-01r300g: split constant buffer and shader emittionMaciej Cencora
2009-10-31r300g: correct the pitch calculation for smaller mipmapsMarek Olšák
2009-10-31r300g: add precalculating of pixel pitch, add a new NPOT flagMarek Olšák
2009-10-31r300g: fix crash in r300_is_texture_referencedMarek Olšák
Also, a subtle fix in emitting a texture state
2009-10-28r300g: fix emitting the stencil-ref and alpha-ref valuesMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com> DSA really needs its head examined someday. ~ C.
2009-10-28r300g: fix the WRAP_T mode when using 1D texturesMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-10-28r300g: fix blending and do some optimizationsMarek Olšák
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-10-21r300g: Cleanup header includes.Corbin Simpson
2009-10-18r300g: Fix up a bunch of warnings.Corbin Simpson
2009-10-16r300g: Use a hash table to look up vertex info.Corbin Simpson
Need to move rs_block to this, too. Also, I'm getting massive amounts of flicker for some reason; I bet we've gotta re-re-examine PSC and friends. :C
2009-10-15r300g: Set logical ID for each emitted texture/sampler.Corbin Simpson
multitexarray works on my r300, but texrect doesn't.
2009-10-14r300g: Move ZTOP to its own state atom.Corbin Simpson
It may seem pointless, but this avoids a fair amount of predicted CSO pain.
2009-10-14r300g: remove buffer add that should be unnecessary.Dave Airlie
This should be handled in the emit fine
2009-10-14r300g: port over last parts of oq support.Dave Airlie
Add support for begin/end in each CS so we don't get any other processes rendering in between. TODO: blame other parts of driver for this not working like Z.
2009-10-14r300g: convert query to a state for emitting.Dave Airlie
This means we don't emit in the begin query but when we have to flush. Similiar to classic. TODO: make query object actually work.
2009-10-14r300g: fixup arb occulsion query support.Dave Airlie
1: add rv530 support - num z pipes cap - add proper start/finish query options for rv530 2: convert to use linked list properly. 3: add flushing required check. 4: initial Z top disabling support. TODO: make it actually work on my rv530.
2009-10-14r300g: attempt to make bo space check sane.Dave Airlie
This attempts to make r300g do proper bo space checking as opposed to whatever it was doing now. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-10-14r300g: fix case where texture unit 0 is disabled but unit 1 is enabled.Dave Airlie
to reproduce, start texrect, disable 0 texture in menu. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-10-11r300g: Fix fragment program constants upload on R300Nicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-26r300g: add missing break in OQ emitDave Airlie
2009-09-12r300g: There is no such thing as "texture stride"Nicolai Hähnle
Individual texture images have a stride, but textures as a whole do not. There are still pieces of code which are confused about this, but the core of the confusion is hopefully gone. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-06r300g: Fix a number of warningsNicolai Hähnle
Seriously guys....
2009-09-06r300g: Debug flags infrastructureNicolai Hähnle
So that debugging is no longer a full-spam-or-nothing approach, you are now supposed to set the RADEON_DEBUG environment flag just like for classic Mesa. The available debug flags are different, however. Just running an OpenGL application with RADEON_DEBUG set to an arbitrary string will print out helpful information. Everything must be compiled with -DDEBUG for any of this to work