summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2009-08-20softpipe: optimized path for simple mipmap samplingKeith Whitwell
linear-mip-linear-repeat-POT sampling faspath, provides a very nice speedup to apps that do this common type of texturing. Test case: demos/terrain, turn fog off, turn texturing on. Without patch: 12 fps With patch: 20 fps.
2009-08-18softpipe: move flatshade-first check out of loopKeith Whitwell
2009-08-11Revert "softpipe: rearrange blend fastpaths"Keith Whitwell
This reverts commit 1295cf423e21dad04a947960782ffa8db2739709. The original formulation was easier to understand & work with. Will revisit this later.
2009-08-11softpipe: reduce textual differences between exec and sse shader pathsKeith Whitwell
Unshare one function (setup_pos_vector) as we want to push this code into the generated shader in the SSE case.
2009-08-11softpipe: remove gallivm fragment shadersKeith Whitwell
However we do llvm integration, it will be different & more comprehensive than this.
2009-07-30softpipe: setup quad outputs from with fs->runKeith Whitwell
2009-07-30softpipe: rearrange blend fastpathsKeith Whitwell
2009-07-30softpipe: add depth-lequal z16 pathKeith Whitwell
2009-07-30softpipe: remove unused variable in shade_quadKeith Whitwell
2009-07-27softpipe: fix off-by-one in nearest texcoord routinesKeith Whitwell
Stray '- 0.5' copied from linear versions.
2009-07-27softpipe: example fast paths for simple samplersKeith Whitwell
All these fastpaths are examples of the types of things we'd code-generate in a more sophisticated version of softpipe.
2009-07-27softpipe: fastpath for interpolated z16 less depthtestingKeith Whitwell
Because this is interpolated (ie. early) depth, we can build in an assumption about the quads emitted by triangle setup, ie that they are actually linear spans. Interpolate z over those spans in z16 format to save on math & conversion.
2009-07-27softpipe: cope with nr_cbufs == 0Keith Whitwell
Disable blend code when no color buffer
2009-07-27softpipe: move all depth/stencil/alpha pixel processing into one stageKeith Whitwell
2009-07-25softpipe: fix error in scissor state dependenciesKeith Whitwell
2009-07-25softpipe: cleanup framebuffer state routine slightlyKeith Whitwell
2009-07-24softpipe: move all color-combine code into sp_quad_blend.cKeith Whitwell
Consolidate the read-modify-write color combining code from the blend, colormask and output stages.
2009-07-24softpipe: fix typoKeith Whitwell
2009-07-24softpipe: example fastpaths in blendingKeith Whitwell
2009-07-24softpipe: actually pass >1 quad from triangle routineKeith Whitwell
First attempt
2009-07-24softpipe: expand quad pipeline to process >1 quad at a timeKeith Whitwell
This is part one -- we still only pass a single quad down, but the code can now cope with more. The quads must all be from the same tile.
2009-07-24softpipe: rip out old mulithread supportKeith Whitwell
2009-07-23softpipe: avoid flushing depth buffer cache on swapbuffersKeith Whitwell
There's no need to push out depth buffer contents on swapbuffers. Note that this change doesn't throw away depth buffer changes, it simply holds them in the cache over calls to swapbuffers. The hope is that swapbuffers will be followed by a clear() which means in that case we won't have to write the changes out.
2009-07-23softpipe: also shortcircuit non-texture tile lookupsKeith Whitwell
2009-07-22softpipe: shortcircuit repeated lookups of the same tileKeith Whitwell
The sp_tile_cache is often called repeatedly to look up the same tile. Add a cache (to the cache) of the single tile most recently retreived and make a quick inline check to see if this matches the subsequent request. Add a tile_address bitfield struct to make this check easier.
2009-07-22softpipe: remove unused vars in sp_setup.cKeith Whitwell
2009-07-22softpipe: use bitwise logic to setup quad masks in sp_setupKeith Whitwell
2009-07-22softpipe: simplify flush_spansKeith Whitwell
No loss of performance, but simpler code.
2009-07-22softpipe: make some small steps to flush texture cache less frequentlyKeith Whitwell
No performance gain yet, but the code is a bit cleaner.
2009-07-22softpipe: remove backwards dependency from tilecache to softpipeKeith Whitwell
The tile cache is a utility, it shouldn't know anything about the entity which is making use of it (ie softpipe). Remove softpipe parameter to all the tilecache function calls, and also remove the need to keep a softpipe pointer in the sampler structs.
2009-07-22gallium: simplify tgsi_full_immediate structKeith Whitwell
Remove the need to have a pointer in this struct by just including the immediate data inline. Having a pointer in the struct introduces complications like needing to alloc/free the data pointed to, uncertainty about who owns the data, etc. There doesn't seem to be a need for it, and it is unlikely to make much difference plus or minus to performance. Added some asserts as we now will trip up on immediates with more than four elements. There were actually already quite a few such asserts, but the >4 case could be used in the future to specify indexable immediate ranges, such as lookup tables.
2009-07-20gallium/trace: Fix SCons build.Michel Dänzer
2009-07-20r300g: Guard R500 register writes by is_r500 check.Michel Dänzer
Flagged by the DRM command stream checker. This allows the driver to work on non-R500 cards.
2009-07-17Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: Makefile progs/glsl/multitex.c src/mesa/main/enums.c src/mesa/main/state.c src/mesa/main/texenvprogram.c src/mesa/main/version.h
2009-07-16tgsi: initial texturing support on sse pathKeith Whitwell
Most obvious problem is drawpixels comes out blocky, but this may be an existing issue of KIL on the sse path.
2009-07-16tgsi: reduce x86 reg usage in tgsi_sse generated programsKeith Whitwell
Pass the tgsi_exec_machine struct in directly and just hold a single pointer to this struct, rather than keeping one for each of its internal members.
2009-07-16gallium: proper constructor and destructor for tgsi_exec_machineKeith Whitwell
Centralize the creation, initialization and destruction of this struct. Use align_malloc instead of home-brew alternatives.
2009-07-15softpipe: limit blend results to [0,1]Luca Barbieri
2009-07-14gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from ↵Patrice Mandin
default extension list
2009-07-13r300g: Small compile warning fixes.Nicolai Hähnle
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-07-13r300g, radeon: Whitespace fixes.Nicolai Hähnle
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-07-13r300g: Use align() instead of inline maths.Corbin Simpson
2009-07-08r300g: Remove VAP_CNTL_STATUS from invariant state.Corbin Simpson
Seriously.
2009-07-08r300g: Disable MSPOS registers for glisse's CS security checker.Corbin Simpson
These will come back in someday, when we can properly use them.
2009-07-08r300-gallium: Unify sampler and texture emit.Corbin Simpson
They have to cross into each other's registers.
2009-07-08r300-gallium: Mipmap setup.Corbin Simpson
(cherry picked from commit 88c01a15da5639dd68a6a0133724994cb66f1316)
2009-07-08r300g: Add endian fix to vertex fetcher setup.Corbin Simpson
As reported and initially tested by MrCooper.
2009-07-03Merge branch 'mesa_7_5_branch'Jakob Bornecrantz
Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
2009-07-02trace: Add drm api integrationJakob Bornecrantz
This is okay since drm_api.h doesn't have any external dependancies, one could make it only compile on platforms that support drm.
2009-07-01r300g: Fix recursive Draw flush.Corbin Simpson
Also just noticed that demos/copypix walks around the overlapping blit rules. Bad, bad Mesa. :3