summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw
Commit message (Collapse)AuthorAgeFilesLines
* Fix some draw_arrays issues.Brian2007-08-193-19/+0
| | | | | | We weren't mapping all the needed vertex array buffers. Move array state that was temporarily in draw_context to softpipe_context. Remove a bunch of dead code.
* fix edgeflag bugBrian2007-08-171-2/+4
|
* added pipe ptr to draw_contextBrian2007-08-171-0/+2
|
* define CLIP_LEFT/RIGHT etcBrian2007-08-172-3/+13
|
* Silence compiler warnings.michal2007-08-161-5/+5
|
* Remove many dependencies on mesa headers.Brian2007-08-1611-137/+192
| | | | To build with mesa, need -DMESA in makefile/config file.
* move the draw_alloc/free_tmps() functions to draw_prim.cBrian2007-08-162-24/+27
|
* Remove GL/mesa types, rearrange things into more logical groupsBrian2007-08-161-40/+41
|
* Drawing code refactoring.Brian2007-08-162-444/+14
| | | | | Move code duplicated between draw_vb.c and sp_draw_arrays.c into draw_prim.c draw_vb.c will eventually go away, but this seems like a good step anyway.
* point/line/polygon drawing (factored out of draw_vb.c)Brian2007-08-162-0/+542
|
* Remove mesa include directories, be stricter about include paths.Keith Whitwell2007-08-151-1/+1
|
* added vertex array info fieldsBrian2007-08-151-0/+7
|
* added draw_set_vertex_array_info()Brian2007-08-152-0/+20
|
* commentBrian2007-08-151-1/+4
|
* comments, minor clean-upsBrian2007-08-151-8/+22
|
* use regular malloc/free instead of macrosBrian2007-08-142-5/+5
|
* Beginnings of a demand-filled post-tnl vertex cache.Keith Whitwell2007-08-144-302/+392
| | | | Probably breaks a bit of stuff, eg unfilled clipping, edgeflags, etc.
* with Y=0=top, front/back determination is negatedBrian2007-08-133-5/+5
|
* Implement new draw_vertices() path for simple vertex array drawing, use it ↵Brian2007-08-022-2/+64
| | | | for glClear.
* Implement line stippling.Brian2007-07-258-1/+50
| | | | | Also added draw_stage::reset_line_stipple(). There may be a better way of doing that though.
* Fix more polygon winding, culling confusion.Brian2007-07-132-9/+15
| | | | If the determinant of the triangle is positive, its winding is CCW (right-handed coord system).
* Fix for-loop in interp() so we don't go out of bounds.Brian2007-07-131-5/+12
| | | | | Improved comments for that loop. Added some sanity check assertions regarding vertex layout.
* Rename prim_stage -> draw_stageBrian2007-07-1210-105/+116
|
* front/back-face determination was wrongBrian2007-07-121-1/+1
|
* culling was invertedBrian2007-07-121-1/+1
|
* handle edge flags for GL_POLYGONsBrian2007-07-121-2/+26
|
* fix MIN/MAX mix-upBrian2007-07-121-3/+7
|
* remove unused hw_data_offsetBrian2007-07-111-4/+6
|
* Fix broken depth offset.Brian2007-07-111-5/+6
| | | | | The edge vectors were totally wrong. Need to multiply bias units by the min resolvable depth delta.
* Fix line clipping bug. New comments.Brian2007-07-101-16/+23
| | | | | | Need to use a new prim_header for the post-clipped line. Otherwise, we were changing the header passed to us from the vb code. That messed up the vertex pointers for the next line primitive.
* clamp after offsetting, new commentsBrian2007-07-101-16/+18
|
* remove unneeded casts, added commentsBrian2007-07-101-5/+5
|
* comments, clean-upBrian2007-07-101-4/+5
|
* added commentsBrian2007-07-101-3/+6
|
* Fix front/back mix-up. added comments.Brian2007-07-101-3/+13
|
* Fix EMIT_ATTR() to populate the draw->vf_attr_to_slot[] array.Brian2007-07-101-10/+37
| | | | | | Note that attribute index has to be biased by two, since vertex->data[] starts after the header and clipcoord fields. See comments for details. Added a bunch of comments/docs.
* Remove softpipe includesBrian2007-07-091-2/+0
|
* New 'draw' module for primitive drawing (clipping, culling, etc).Brian2007-07-099-153/+261
|
* New 'draw' module for handling the various stages of primitive drawing ↵Brian2007-07-091-0/+182
| | | | (clipping, culling, etc).
* Rename/move some files to modularize the primitive/draw code.Brian2007-07-099-0/+2017