summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_prim_setup.c
AgeCommit message (Collapse)Author
2007-10-29Make gallium compile in win32.Michal Krol
Use FREE, MALLOC, CALLOC, GETENV wrappers. Silence compiler warnings. Add proper copyrights.
2007-10-29Remove typedefs from enums.Zack Rusin
typedefs are rather evil, remove them and use the enum keyword explicitely.
2007-10-27Silence compiler warnings.michal
2007-10-17fix square point rasterizationBrian
2007-10-16Update mask calculations for point drawing.Brian
2007-10-16Redefine QUAD_TOP_LEFT, TOP_RIGHT, etc. to reflect Y=0=TOP raster layout.Brian
2007-10-16fix perspective-interpolated attribs for points, liensBrian
2007-09-27restore primitive trimming in sp_draw_arrays.ckeithw
2007-09-27Make flushing more lazy in the draw module.Keith Whitwell
2007-09-25First attempt at building vertex buffers post-clip.Keith Whitwell
Build a buffer of contigous vertices and indices at the backend of our software transformation/clipping path. This will become the mechanism for emitting buffers of vertices to rasterization hardware. This is similar to but not the same as the post-transform vertex cache. In particular, these vertices are subject to clipping, culling, poly offset, etc. The vertices emitted will all be used by hardware. TODOs include the actual transformation to hardware vertex formats, moving this out of softpipe to somewhere more useful and allowing >1 primitive to share the generated VB.
2007-09-21Fix up some point size breakage. Start on fogcoord too.Brian
2007-09-20checkpoint: TGSI_ATTRIB_x tokens no longer usedBrian
2007-09-20Checkpoint: vertex attribute clean-up.Brian
Remove/disable the attrib/slot mapping arrays in a few places. Work in progress...
2007-09-18Checkpoint: rework shader input/output register mapping.Brian
This is a step toward removing TGSI_ATTRIB_ tokens. Basically, when translating Mesa programs to TGSI programs, pass in input and output register re-maps, plus interpolation info. There's some known breakage (cubemap.c) so more to be done...
2007-09-18additional comments for tri_persp_coeff()Brian
2007-09-18converting the setup state to immutable object and renaming it to rasterizer ↵Zack Rusin
state
2007-08-31Define attrib_format and interp_mode enum typedefs and use where appropriate.Brian
2007-08-30fix unhandled switch/case warningBrian
2007-08-30In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors ↵Brian
to cpy. One less dependency on the TGSI_ATTRIB_x flags. This requires setting the vertex_info->interp_mode[] values in the i915 driver and passing them to draw_set_vertex_attributes().
2007-08-30Sketch out per-vertex point size.Brian
The code is all in place, but mostly disabled for now: In t_vp_build.c, write the VERT_RESULT_PSIZE register In sp_state_derived.c, need to emit vertex point size if drawing points. In setup_point() use the point size from the vertex.
2007-08-23Use vertex_info struct for softpipe - lots of clean-up.Brian
2007-08-23Checkpoint: new vertex/fragment attribute namingBrian
Replace VF_ATTRIB_x with TGSI_ATTRIB_x When converting mesa programs to TGSI programs, also convert the InputsRead and OutputsWritten to a mask of TGSI_ATTRIB_ bits. Still need to do conversion for vertex programs...
2007-08-20remove some of the #ifndef MESA stuffBrian
2007-08-16Silence compiler warnings.michal
2007-08-16Remove many dependencies on mesa headers.Brian
To build with mesa, need -DMESA in makefile/config file.
2007-08-15Remove mesa include directories, be stricter about include paths.Keith Whitwell
2007-08-15Add UsageMask to DECLARATION in TGSI.michal
Interpolate FS attributes in the shader. Do not copy WPOS in FS.
2007-08-14Continue reducing dependencies on core mesa include files.Keith Whitwell
Mainly down to the support for legacy TNL processing now.
2007-08-08print_vertex func for debuggingBrian
2007-08-08Add a quad_stage::begin() method to do per-primitive preparations (like ↵Brian
setting up samplers).
2007-07-30Merge branch 'softpipe_0_1_branch' of ↵Brian
git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch
2007-07-30remove old commentsBrian
2007-07-27renaming, comments, clean-upBrian
2007-07-27Clip triangles against softpipe->cliprect which includes scissor and surface ↵Brian
bounds. This prevents rendering out of bounds when the viewport is partially outside the surface bounds.
2007-07-27remove obsolete commentsBrian
2007-07-27Maintain cliprect (scissor) info in sp_state_derived.c.Brian
The cliprect depends on the scissor rect (if enabled), otherwise the drawing surface bounds.
2007-07-27Implement point/line quad clipping. Not quite as efficient as it probably ↵Brian
could be, but sufficient for now.
2007-07-27init quad.coverage values to 1.0 in case line AA is enabled so that we see ↵Brian
something
2007-07-25Implement line stippling.Brian
Also added draw_stage::reset_line_stipple(). There may be a better way of doing that though.
2007-07-13Add 'prim' field to quad so that stipple and aa coverage stages can do the ↵Brian
right thing.
2007-07-13Implement AA points and AA coverage application in quad pipeline.Brian
2007-07-12s/prim_setup/sp_draw_render_stage/, new commentsBrian
2007-07-12Rename prim_stage -> draw_stageBrian
2007-07-11disable debug printfsBrian
2007-07-11Implement polygon stipple state tracking, application.Brian
2007-07-11Compute quad.facing from prim->det and polygon winding.Brian
Updated comments/questions about area vs. prim->det.
2007-07-10Added comments, assertions.Brian
2007-07-10remove some dead/disabled stuffBrian
2007-07-09New 'draw' module for primitive drawing (clipping, culling, etc).Brian
2007-06-26consolidate point/line state into pipe_setup_stateBrian