summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
Commit message (Collapse)AuthorAgeFilesLines
* draw: add passthrough path to the pipelineKeith Whitwell2008-04-038-67/+424
| | | | | | | This handles the case where bypass_vs is set, but vertices need to go through the pipeline for some reason - eg unfilled polygon mode. Demonstrates how to drive the pipeline from inside one of these things.
* draw: add missing break statementKeith Whitwell2008-04-021-0/+1
|
* draw: Set the backend prim in the pt 'prepare' operationKeith Whitwell2008-04-024-28/+31
| | | | | | | Leaving it until 'run' is bad as the primitive is pretty much state for some drivers and so needs to get set early. In some drivers this is used to determine things like vertex format, etc -- by the time we get to 'run', it's too late to change this.
* gallium: add a flag to turn on gl rasterization rulesKeith Whitwell2008-04-021-6/+13
| | | | | | | Use this to set up hardware rasterization (if your hardware can do it) or otherwise turn on various tweaks in the draw module. Currently only hooked up to point biasing code.
* gallium: add temporary facility for rasterization-time clamping of point sizesKeith Whitwell2008-04-021-1/+13
|
* draw: remove dead codeKeith Whitwell2008-04-011-37/+0
|
* draw: more flatshade_first changesKeith Whitwell2008-04-015-97/+144
| | | | | | - Reduce the number of changes to the normal vertex ordering - Assume that the hardware knows how to do this in the standard case. - Add support to the passthrough vcache path.
* draw: respect flatshade_first in flatshade stageKeith Whitwell2008-04-011-6/+49
|
* draw: associate rhw divide with clipping not viewport flagKeith Whitwell2008-04-013-18/+18
|
* draw: flush between pt/non-pt modesKeith Whitwell2008-04-011-0/+4
|
* gallium: draw_passthrough.c is obsolete - removedBrian2008-03-311-473/+0
|
* gallium: move the test for bypass_vs into the vs_XXX_run() functionsBrian2008-03-316-35/+76
| | | | | | | | | | Also: 1. Added an identity_viewport flag to skip viewport transformation when it has no effect. Might also add an explicit bypass_viewport flag someday. 2. Separate the code for computing clip codes and doing the viewport transform. Predicate them separately. Note: even if bypass_vs is set, we still look at the shader to determine the number of inputs and outputs.
* gallium: draw_passthrough.c is not used anymoreBrian2008-03-311-1/+0
|
* gallium: draw_passthrough.c is not used anymoreBrian2008-03-311-1/+0
|
* draw: Do not run full pipeline when flatshade_first for point primitives.Michal Krol2008-03-303-1/+11
|
* draw: Fix bypass_vs semantic misuse.Michal Krol2008-03-301-0/+1
|
* gallium: Set vertex state/buffers en-mass.Brian Paul2008-03-292-16/+20
|
* gallium: Fix some MSVC warnings.José Fonseca2008-03-291-1/+1
|
* gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBSBrian2008-03-278-18/+18
| | | | | The later follows the naming scheme of other limits. Keep the old definition until all possible usage is updated.
* gallium: remove temporary static varBrian2008-03-272-6/+6
|
* gallium: as for aapoints, make the extra texcoord per-shader stateBrian Paul2008-03-261-11/+13
|
* gallium: the generic attrib we use for computing coverage is per-shaderBrian2008-03-251-11/+13
| | | | Fixes a very tricky conformance failure.
* draw: Take flatshade_first rasterizer bit into account.Michal Krol2008-03-251-45/+117
|
* draw: vertex fetch can be validated too early leading to an assertion... disableKeith Whitwell2008-03-251-1/+5
|
* draw: don't use fetch_and_store for bypass_vs mode, it's not quite rightKeith Whitwell2008-03-251-4/+1
|
* draw: take primitive into account when deciding if the pipeline is activeKeith Whitwell2008-03-254-37/+69
|
* gallium: be smarter about picking the sampler unit for pstipple, aaalinesBrian2008-03-242-21/+74
| | | | | Also, if the app really uses all available sampler/texture units, don't just die. Just use the last sampler for the pstipple or aaline texture.
* gallium: move sampler_unit field to pstip_fragment_shader since it's per-shaderBrian2008-03-241-5/+16
| | | | Also, fix another texture refcounting bug.
* gallium: make a copy of the vertex shader's token array.Brian2008-03-243-3/+17
| | | | | This solves problems when the state tracker frees the token array when the draw module still needs it.
* gallium: use pipe_texture_reference() in a few places (fixes refcounting bugs)Brian2008-03-242-4/+17
|
* draw: pre-declare referenced structsKeith Whitwell2008-03-241-0/+2
|
* Revert "draw: Fix #include order to fix Linux build."Keith Whitwell2008-03-241-1/+1
| | | | This reverts commit a6d17bf671d6bfbb187a62ba14b9ad08fb5dafe1.
* draw: Fix #include order to fix Linux build.Michel Dänzer2008-03-241-1/+1
|
* draw: check need_pipeline() in passthroughKeith Whitwell2008-03-231-1/+1
|
* draw: tweak the definition of draw_need_pipeline, fix minor bugKeith Whitwell2008-03-231-11/+15
|
* draw: fix crlfKeith Whitwell2008-03-232-204/+204
|
* draw: rename emit functions to match pipe_format namesKeith Whitwell2008-03-231-22/+17
|
* draw: restructure fetch/emit as a pair of function callsKeith Whitwell2008-03-231-109/+152
|
* draw: fix some unsigned vs ushort confusionKeith Whitwell2008-03-233-10/+9
| | | | | Middle-end elements are ushort, but prior to that have to treat all elements as unsigned to avoid wrapping and/or overruns.
* gallium: beginnings of draw module vertex reworkKeith Whitwell2008-03-2311-19/+1169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Trying to put a structure in place that we can actually optimize. Initially just implementing a passthrough mode, this will fairly soon replace all the vertex_cache/prim_queue/shader_queue stuff that's so hard to understand... Split the vertex processing into a couple of distinct stages: - Frontend - Prepares two lists of elements (fetch and draw) to be processed by the next stage. This stage doesn't fetch or draw vertices, but makes the decision which to draw. Multiple implementations of this will implement different strategies, currently just a vcache implementation. - MiddleEnd - Takes the list of fetch elements, fetches them, runs the vertex shader, cliptest, viewport transform on them to produce a linear array of vertex_header vertices. - Passes that list of vertices, plus the draw_elements (which index into that list) onto the backend - Backend - Either the existing primitive/clipping pipeline, or the vbuf_render hardware backend provided by the driver. Currently, the middle-end is the old passthrough code, and it build hardware vertices, not vertex_header vertices as above. It may be that passthrough is a special case in this respect.
* gallium: free samplers, textures in destroy()Brian2008-03-222-0/+13
|
* gallium: fix mem leak (fee pstipple stage)Brian2008-03-221-0/+2
|
* gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul2008-03-192-1/+2
| | | | | This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
* gallium: added braces to silence warningBrian2008-03-181-1/+2
|
* gallium: improvements, or extensions at least, to the passthrough pathKeith Whitwell2008-03-172-98/+257
| | | | Passthrough is actually more tricky than you'd think...
* gallium: add explicit control for point sprites (convert points to textured ↵Brian2008-03-145-2/+24
| | | | | | | quads) New draw_enable_point_sprites() function. Fixes spriteblast.c demo
* scons: Remove second occurence of draw_passthrough.c.Michal Krol2008-03-141-2/+1
|
* gallium: added some debug code (disabled)Brian2008-03-141-0/+13
|
* gallium: fix some compiler warningsKeith Whitwell2008-03-141-2/+2
|
* gallium: fix EMIT_HEADER case in draw_vf_set_vertex_info()Brian2008-03-131-1/+5
|