summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
Commit message (Collapse)AuthorAgeFilesLines
* Checkpoint: vertex attribute clean-up.Brian2007-09-2010-32/+36
| | | | | Remove/disable the attrib/slot mapping arrays in a few places. Work in progress...
* remove unused lookup[]Brian2007-09-201-0/+4
|
* Cache the i915 sampler state.Zack Rusin2007-09-203-151/+156
|
* Make the rasterizer state in i915 use the cso semantics.Zack Rusin2007-09-205-75/+87
|
* Rewrite the depth_stencil state handling in i915.Zack Rusin2007-09-204-88/+95
| | | | | Done to match the new cso semantics. translate in create, use in bind and later delete.
* Fix failover state binding and convert the sampler to use the newZack Rusin2007-09-208-64/+82
| | | | state constant state object semantics.
* Convert depth_stencil state to the new semantics.Zack Rusin2007-09-208-41/+61
|
* Switch fragment/vertex shaders to the new caching semantics.Zack Rusin2007-09-208-65/+119
| | | | | 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-1915-93/+360
| | | | | | | | 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.
* Fix a really stupid mistake that Michel hit. Return proper hash.Zack Rusin2007-09-191-0/+6
|
* Avoid redundant reallocation of the template.Zack Rusin2007-09-191-5/+4
| | | | | | cso already allocated the template for us. Returning 0 means we have no driver specific representation and just want the template on the bind.
* Convert the rasterizer cso to the new semantics.Zack Rusin2007-09-198-39/+61
| | | | | Basically make cso hold the driver specific struct, while managing the template.
* Convert the i915 driver blend state to the new semantics.Zack Rusin2007-09-194-82/+88
|
* Redo the cso cache to map driver data in a lot more pleasing way.Zack Rusin2007-09-198-24/+60
| | | | | | Drivers can now create whatever they want from the state template. We use cso_state object to store the template (necessary during lookups), and the driver data. Convert blend state to the new semantics.
* Finish up conversions of shaders to immutable objects.Zack Rusin2007-09-195-16/+33
| | | | | Create/Delete calls should be split since in create we'll be compiling them so we want to know which one it is (vertex/fragment).
* Checkpoint: rework shader input/output register mapping.Brian2007-09-186-41/+100
| | | | | | | 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...
* Fix some issues with perspective-corrected interpolation.Brian2007-09-183-6/+6
| | | | | | | | | | In mesa_to_tgsi.c, use TGSI_INTERPOLATE_PERSPECTIVE by default (to match post-transform vertex info convention). More to be done there... In sp_quad_fs.c, interpolate W in addition to Z. This fixes the divide by zero happening in perspective_interpolation() tgsi_exec.c As it was, we were only getting perspective correction of texture coords used by the TGSI_TEX instruction since it does a homogeneous divide. Other coords/varyings were incorrect.
* additional comments for tri_persp_coeff()Brian2007-09-181-0/+4
|
* Convert shader to an immutable state object.Zack Rusin2007-09-1817-56/+105
|
* Finishing up rename of the setup state to the rasterizer state.Zack Rusin2007-09-188-17/+17
|
* move cso cache to the pipe directoryZack Rusin2007-09-184-0/+679
|
* converting the setup state to immutable object and renaming it to rasterizer ↵Zack Rusin2007-09-1825-99/+148
| | | | state
* Combing depth and stencil objects and making them immutable.Zack Rusin2007-09-1818-191/+188
| | | | | Converting depth and stencil objects into a single state object (d3d10 like) and making it immutable.
* Fix the warning.Zack Rusin2007-09-181-1/+1
| | | | | | The const is there to enforce the immutable state of the object, which is in reality owned by the pipe so just cast away the constness.
* Make sampler an immutable state object.Zack Rusin2007-09-1811-45/+89
| | | | Switch the sample to be an immutable state object.
* First stab at immutable state objects (create/bind/delete)Zack Rusin2007-09-1815-50/+103
| | | | | | | We want our state objects to be immutable, handled via the create/bind/delete calls instead of struct propagation. Only implementing the blend state to see how it would look like and work.
* s/bugmgr/bufgr/Brian2007-09-171-1/+1
|
* Remove non-meaningful region_idle() interfaceKeith Whitwell2007-09-174-16/+0
| | | | This is already handled by the semanics of map(), etc.
* Implement query object interface.Brian2007-09-118-21/+83
| | | | | | This replaces the temporary occlusion counter functions we had before. Added new ctx->Driver.WaitQuery() function which should block until the result is ready. Sketch out some code for vertex transformation feedback counters.
* vertex feedback functionsBrian2007-09-101-0/+72
|
* merge buffer_unreference(), buffer_reference()Brian2007-09-104-11/+11
|
* More work on vertex feedback / glRasterPos. Basic rasterpos works now.Brian2007-09-1010-7/+69
|
* Initial work for post-transformed vertex feedback buffers.Brian2007-09-066-32/+92
| | | | | | | This will be used for: GL_NV_transform_feedback, or similar GL3 functionality glRasterPos GL selection/feedback modes
* Initial work for post-transform vertex feedback buffers.Brian2007-09-061-0/+247
| | | | | | | This will be used for: GL_NV_transform_feedback, or GL3 equivalent. RasterPos GL select/feedback modes
* move some protos from draw_vertex.h to draw_private.hBrian2007-08-312-17/+16
|
* Define attrib_format and interp_mode enum typedefs and use where appropriate.Brian2007-08-317-38/+51
|
* Consolidate vertex-related code in new draw_vertex.cBrian2007-08-307-207/+214
| | | | | | | A few functions which were basically duplicated between softpipe and the i915 driver are now re-used: draw_emit_vertex_attr() draw_compute_vertex_size()
* Remove dependency on TGSI_ATTRIB_x tokens in draw_twoside.cBrian2007-08-306-26/+95
| | | | | 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
|
* fix unhandled switch/case warningBrian2007-08-301-0/+4
|
* In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors ↵Brian2007-08-308-57/+56
| | | | | | | 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-303-4/+17
| | | | | | | 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.
* Add p_compiler.h.michal2007-08-291-0/+1
|
* Break GL dependencies.michal2007-08-291-1/+1
|
* Break GL dependencies.michal2007-08-291-2/+3
|
* Break GL dependencies.michal2007-08-292-32/+32
|
* Break GL dependencies.michal2007-08-291-105/+105
|
* Fix ffs().michal2007-08-291-2/+7
|
* Split out vertex shader/cache/fetch functionality from draw_prim.cKeith Whitwell2007-08-276-410/+510
|