aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_rasterpos.c
Commit message (Collapse)AuthorAgeFilesLines
* vbo: Avoid extra validation of DrawElements.Eric Anholt2009-08-121-1/+1
| | | | | | | | | | | | | This saves mapping the index buffer to get a bounds on the indices that drivers just drop on the floor in the VBO case (cache win), saves a bonus walk of the indices in the CheckArrayBounds case, and other miscellaneous validation. On intel it's a particularly a large win (50-100% in my app) because even though we let the indices stay in both CPU and GPU caches, we still end up waiting for the GPU to be done with the buffer before reading from it. Drivers that want the min/max_index fields must now check index_bounds_valid and use vbo_get_minmax_index before using them.
* st/mesa: init Format field of vertex arrays for feedback modeBrian Paul2009-05-271-0/+1
| | | | Fixes segfault in glRasterPos()
* mesa: use Elements() for loop limitBrian Paul2009-05-221-1/+1
|
* mesa: use new ST_CALLOC_STRUCT() macro in gallium state trackerBrian Paul2009-02-121-1/+1
|
* mesa: consistantly use mesa memory-functions in gallium state trackerBrian Paul2009-02-121-1/+1
| | | | | Use _mesa_malloc(), _mesa_free(), etc everywhere, not malloc(), free(), etc. Still using CALLOC_STRUCT() at this point.
* gallium: fix texcoord loop for rasterpos attributesBrian Paul2009-01-021-1/+1
|
* gallium: fix inverted raster pos when drawing into FBOBrian Paul2008-11-241-1/+4
|
* st: Silence compiler warnings on Windows.Michal Krol2008-07-151-1/+1
|
* draw: move some pipeline-specific code & state to draw_pipe.[ch]Keith Whitwell2008-04-191-1/+1
|
* gallium: in GL_SELECT mode, update hitflag in rasterposBrian Paul2008-02-281-0/+5
|
* gallium: fix off by one rasterpos bugBrian2008-02-261-1/+1
|
* Code reorganization: update build.José Fonseca2008-02-151-2/+2
| | | | | | | | | Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
* gallium: replace prim pipeline begin/end() functions with flush()Brian2008-01-251-9/+2
| | | | | | | | | | | | | This is basically half of Keith's draw/flush patch. The stage->point/line/tri() functions are now self-validating, the validator functions are installed by the flush() function. There were excessive calls to validate_pipeline(), however. This was caused by draw_prim_queue_flush() keeping a local 'first' variable that always pointed to the validate functions. Replaced 'first' with 'draw->pipeline.first'. Performance in gears is up just slightly with this patch.
* gallium: added rastpos_destroy()Brian2008-01-251-0/+1
|
* gallium: added rastpos_destroy()Brian2008-01-241-0/+7
|
* gallium: silence warningsBrian2008-01-211-1/+1
|
* gallium: Remove feedback interfaces from pipe driver.Keith Whitwell2007-12-111-23/+21
| | | | | Something similar will return when geometry shaders are added, but for now this interface is not required.
* Reimplement glRasterPos using the private 'draw' module.Brian2007-11-161-282/+158
|
* Supply buffer usage hints to winsys.José Fonseca2007-11-061-2/+5
| | | | | Winsys driver needs some hints in order to allocate the appropriate kind of memory for the buffer.
* handle fogcoord/raster distanceBrian2007-10-181-4/+15
|
* remove #include vf.hBrian2007-10-171-1/+0
|
* generate selection hit if in selection mode and pos is not clippedBrian2007-10-171-0/+5
|
* don't crash in RasterPos if feedback not implemented yetBrian2007-10-011-3/+6
|
* Translate mesa vertex/fragment programs to TGSI programs at same time to do ↵Brian2007-09-251-31/+30
| | | | | | | | | | | | | | | | | | proper linking. Previously, programs were translated independently during validation. The problem is the translation to TGSI format, which packs shader input/outputs into continuous slots, depends on which vertex program is being paired with which fragment shader. Now, we look at the outputs of the vertex program in conjunction with the inputs of the fragment shader to be sure the attributes match up correctly. The new 'linked_program_pair' class keeps track of the associations between vertex and fragment shaders. It's also the place where the TGSI tokens are kept since they're no longer per-program state but per-linkage. Still a few loose ends, like implementing some kind of hash/lookup table for linked_program_pairs.
* Fix up some point size breakage. Start on fogcoord too.Brian2007-09-211-0/+3
|
* remove #includes of tgsi_attribs.hBrian2007-09-201-1/+0
|
* Switch fragment/vertex shaders to the new caching semantics.Zack Rusin2007-09-201-1/+2
| | | | | Allow driver custom allocation within cached objects. The shaders are currently twiced (by cso layer and by the program itself).
* Checkpoint: replacement of TGSI_ATTRIB_x tokens with input/output semantics.Brian2007-09-191-4/+9
| | | | | | | | TGSI_ATTRIB_x tokens still present and used in a few places. Expanded set of TGSI_SEMANTIC_x tokens for describing the meaning of inputs/outputs. These tokens are in a crude state ATM. Lots of #if 0 / disabled code to be removed yet, etc... Softpipe and i915 drivers should be in working condition but not heavily tested.
* Convert shader to an immutable state object.Zack Rusin2007-09-181-3/+3
|
* merge buffer_unreference(), buffer_reference()Brian2007-09-101-1/+1
|
* glRasterPos functionBrian2007-09-101-0/+350