summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw
Commit message (Collapse)AuthorAgeFilesLines
* Remove dependency on TGSI_ATTRIB_x tokens in draw_twoside.cBrian2007-08-304-14/+60
| | | | | Added a new draw_set_twoside_attributes() function for specifying which vertex attributes are to be copied/replaced when a polygon is back-facing.
* fix breakage from prev commitBrian2007-08-301-1/+1
|
* In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors ↵Brian2007-08-304-42/+38
| | | | | | | 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().
* Fix lost edge flags problem when clipping.Brian2007-08-302-2/+16
| | | | | | In emit_poly() we need to compute header.edgeflags from the vertex edge flags. Also need to set header.det so later stages can determine front/back orientation.
* Sketch out per-vertex point size.Brian2007-08-301-1/+1
| | | | | | | 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.
* Split out vertex shader/cache/fetch functionality from draw_prim.cKeith Whitwell2007-08-276-410/+510
|
* Hook-up SSE2 to VS.michal2007-08-241-1/+30
|
* Fix user-defined clip planes. They seem to work properly now.Brian2007-08-245-40/+63
| | | | | | The bits for the N user-defined planes are now set in the vertex_header->clipmask. See some detailed comments about this in the clip_line() function. CLIP_USER_BIT no longer exists.
* re-enable compute_clipmask() callBrian2007-08-241-1/+1
|
* Fixup include paths after renameKeith Whitwell2007-08-242-2/+2
|
* remove dead codeBrian2007-08-231-38/+10
|
* Vertex shader outputs are now tightly packed into the output slots.Brian2007-08-231-20/+37
| | | | | Fix softpipe vertex attribute setup. Also, update vs constants when the projection matrix changes (fixes samples/prim.c)
* Need to copy header->edgeflags to tmp when creating new prim_header.Brian2007-08-233-0/+3
| | | | Edge flags were random/undefined otherwise.
* minor improvement to get_vertex() in-use flag settingBrian2007-08-231-4/+2
|
* fix an edgeflag logic error, see commentsBrian2007-08-231-0/+5
|
* fix incorrect vertex index for POLYGON drawingBrian2007-08-231-1/+1
|
* get rid of VERT_RESULT_ usageBrian2007-08-231-8/+2
|
* Checkpoint: new vertex/fragment attribute namingBrian2007-08-236-95/+20
| | | | | | | 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...
* comment about code duplicationBrian2007-08-231-0/+1
|
* Checkpoint commit: i915 texture works, use new vertex_info structBrian2007-08-236-58/+68
| | | | | Basic i915 2D texturing seems to work now. The vertex format is determined from the current fragment shader.
* Define a re-usable vertex_info structure to describe vertex layouts.Brian2007-08-231-0/+141
| | | | | This also includes legacy #defines for VF_ATTRIB_*, FRAG_ATTRIB_*, etc tokens. Those will go away eventually, but at least we no longer need vf/vf.h
* more debug outputBrian2007-08-221-10/+18
|
* remove old draw_vertices()Brian2007-08-221-6/+0
|
* Rework of shader constant buffers.Brian2007-08-223-1/+12
| | | | | They're now totally independent of the actual shaders. Also, implemented in terms of pipe_buffer_handles/objects.
* Headers.michal2007-08-211-23/+39
| | | | | | Fix alignment issues. Silence compiler warnings. More debugging code.
* Silence compiler warnings.michal2007-08-212-2/+2
|
* Move vertex transformation/shader code into draw_prim.c to avoid need for ↵Brian2007-08-203-272/+270
| | | | vs_flush() function pointer.
* move ALIGN16-related macros into p_compiler.hBrian2007-08-201-10/+0
|
* Update glClear and glDrawPixels code.Brian2007-08-201-2/+3
| | | | | Since they're implemented by drawing quadrilaterals (and go through vertex transformation and viewport mapping) we don't have to invert Y coords.
* remove some of the #ifndef MESA stuffBrian2007-08-203-13/+18
|
* ObsoleteBrian2007-08-201-320/+0
|
* remove dead code related to vf moduleBrian2007-08-202-35/+2
|
* Checkpoint: remove more of the old draw_vb() code.Brian2007-08-203-9/+7
|
* Start to remove the temporary draw_vb() and draw_vertices() code.Brian2007-08-202-69/+4
| | | | new st_draw_vertices() utility used by glClear and glDrawPixels
* Move guts of vertex array drawing into the 'draw' module.Brian2007-08-207-24/+455
|
* fix cache overflow bug in get_vertex()Brian2007-08-201-3/+4
|
* Merge branch 'softpipe_0_1_branch' of ↵Brian2007-08-204-21/+4
|\ | | | | | | git+ssh://[email protected]/git/mesa/mesa into softpipe_0_1_branch
| * 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
| |
* | replace memcpy() with assignment, better type safetyBrian2007-08-171-1/+1
| |
* | added CLIP_x_SHIFT valsBrian2007-08-171-0/+16
|/
* 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
|