summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw
AgeCommit message (Collapse)Author
2008-03-27gallium: remove temporary static varBrian
2008-03-26gallium: as for aapoints, make the extra texcoord per-shader stateBrian Paul
2008-03-25gallium: the generic attrib we use for computing coverage is per-shaderBrian
Fixes a very tricky conformance failure.
2008-03-25draw: Take flatshade_first rasterizer bit into account.Michal Krol
2008-03-25draw: vertex fetch can be validated too early leading to an assertion... disableKeith Whitwell
2008-03-25draw: don't use fetch_and_store for bypass_vs mode, it's not quite rightKeith Whitwell
2008-03-25draw: take primitive into account when deciding if the pipeline is activeKeith Whitwell
2008-03-24gallium: be smarter about picking the sampler unit for pstipple, aaalinesBrian
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.
2008-03-24gallium: move sampler_unit field to pstip_fragment_shader since it's per-shaderBrian
Also, fix another texture refcounting bug.
2008-03-24gallium: make a copy of the vertex shader's token array.Brian
This solves problems when the state tracker frees the token array when the draw module still needs it.
2008-03-24gallium: use pipe_texture_reference() in a few places (fixes refcounting bugs)Brian
2008-03-24draw: pre-declare referenced structsKeith Whitwell
2008-03-24Revert "draw: Fix #include order to fix Linux build."Keith Whitwell
This reverts commit a6d17bf671d6bfbb187a62ba14b9ad08fb5dafe1.
2008-03-24draw: Fix #include order to fix Linux build.Michel Dänzer
2008-03-23draw: check need_pipeline() in passthroughKeith Whitwell
2008-03-23draw: tweak the definition of draw_need_pipeline, fix minor bugKeith Whitwell
2008-03-23draw: fix crlfKeith Whitwell
2008-03-23draw: rename emit functions to match pipe_format namesKeith Whitwell
2008-03-23draw: restructure fetch/emit as a pair of function callsKeith Whitwell
2008-03-23draw: fix some unsigned vs ushort confusionKeith Whitwell
Middle-end elements are ushort, but prior to that have to treat all elements as unsigned to avoid wrapping and/or overruns.
2008-03-23gallium: beginnings of draw module vertex reworkKeith Whitwell
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.
2008-03-22gallium: free samplers, textures in destroy()Brian
2008-03-22gallium: fix mem leak (fee pstipple stage)Brian
2008-03-19gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul
This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
2008-03-18gallium: added braces to silence warningBrian
2008-03-17gallium: improvements, or extensions at least, to the passthrough pathKeith Whitwell
Passthrough is actually more tricky than you'd think...
2008-03-14gallium: add explicit control for point sprites (convert points to textured ↵Brian
quads) New draw_enable_point_sprites() function. Fixes spriteblast.c demo
2008-03-14scons: Remove second occurence of draw_passthrough.c.Michal Krol
2008-03-14gallium: added some debug code (disabled)Brian
2008-03-14gallium: fix some compiler warningsKeith Whitwell
2008-03-13gallium: fix EMIT_HEADER case in draw_vf_set_vertex_info()Brian
2008-03-13gallium: plug in vertex passthrough codeBrian
Based on a patch from Zack. Basically, implement a new draw_arrays function that copies the incoming user-vertices to the hardware vertex buffer, doing format/type conversion as needed. The vertex fetch/store code is totally temporary for now.
2008-03-13gallium: fix bug in draw_num_vs_outputs()Brian
2008-03-13gallium: added EMIT_HEADER caseBrian
2008-03-13gallium: added EMIT_HEADER case in emit_vertex()Brian
2008-03-13gallium: added new EMIT_HEADER tokenBrian
Used to emit the struct vertex_header info for softpipe. Before we were using the EMIT_ALL token but that's insufficient for the draw pass-through mode. EMIT_ALL might get removed soon...
2008-03-13gallium: added draw_need_pipeline() predicate functionBrian
To test if we need any pipeline stage, or whether we can go into passthrough mode.
2008-03-13gallium: added draw_enable_line_stipple() functionBrian
Allows drivers that implement line stipple to turn off this drawing stage.
2008-03-13gallium: remove dead code related to shader semantic input/output infoBrian Paul
2008-03-13gallium: fix bug in stip_first_tri()Brian Paul
Need to compute num_samplers after binding/creating the fragment shader.
2008-03-13gallium: remove semantic info from pipe_shader_stateBrian Paul
Brian's patch to clean up the shader interfaces.
2008-03-12gallium: fix polygon stippleBrian
Was broken by commit 4528287e040415c2071012d02f20979ff995c754 (bind all samplers/texures at once).
2008-03-12gallium: change draw_vertex_shader->state from pointer to structBrian
We were sometimes keeping a pointer to a stack-allocated object. Now make a copy of the pipe_shader_state object. This should fix some seemingly random memory errors/crashes.
2008-03-12gallium: reduce signed/unsigned warningsKeith Whitwell
2008-03-11gallium: rework CSO-related code in state trackerBrian
Use the code in cso_context.c rather than st_cache.c. Basically, binding of state objects now goes through the CSO module. But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're not cached by the CSO module at this time. Also, update softpipe driver to handle NULL state objects in various places. This happens during context destruction. May need to update other drivers...
2008-03-11draw: don't free our copy of the render stage -- just borrowing it from vbuf ↵Keith Whitwell
stage
2008-03-11gallium: missing fileKeith Whitwell
2008-03-10fix compilationZack Rusin
2008-03-10draw: placeholder/prototype code for a passthrough draw pathKeith Whitwell
2008-03-10gallium: fix compiler warningKeith Whitwell