aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_span.c
Commit message (Collapse)AuthorAgeFilesLines
* fix an assertionBrian Paul2006-04-261-1/+1
|
* Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]UnitsBrian Paul2006-04-141-1/+2
| | | | | | in various places. Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image limits when referenced, not just in glActiveTexture().
* More GLSL code:Michal Krol2006-04-111-15/+55
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* GLSL fixes:Michal Krol2006-03-211-3/+3
| | | | | | | | | | | | | | | | | | - generate error on NULL pointers in glShaderSourceARB; - reinstall program object, if current, in glLinkProgramARB; - vertex and fragment shaders are optional in program object; - floor asm was wrongly computed for x86 back-end; - allow for (void) idiom in function prototypes; - all fixed-state uniforms are updated; - local variable initializers are working; - implement texture* and shadow* functions for vertex processor; - generate error if too many arguments in general constructor; - trim unused data in general constructor; - struct r-value field select was badly relocated; Changes: - add derived state gl_fog_attrib::_Scale; - add derived state gl_light::_CosCutoffNeg;
* Fix bogus span mask in s_atifragshader.c leading to trouble when the pixel ↵Roland Scheidegger2006-03-031-4/+5
| | | | was later discarded by z test (this fixes doom3 r200 renderpath with swrast). Fix calling _swrast_alpha_test potentially leading to bogus results when Alpha Test might not be enabled. While here, don't disable deferred_texture (early z) when ATI_fragment_shader is active, as it is not necessary (for the record, this boosts doom3 swrast performance by roughly a factor of 2 (4 seconds per frame now...) with the r200 render path, might be a worthwile optimization for fragment programs which don't write z).
* check if active fragment shader for deferred texturing/shadingBrian Paul2006-02-281-1/+2
|
* Add arbshader stage.Michal Krol2006-02-151-5/+16
|
* get depthBits from the current drawbufferBrian Paul2005-12-011-3/+3
|
* Added OSMesaColorClamp(), bug 4917Brian Paul2005-11-121-0/+14
|
* check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul2005-10-311-2/+2
|
* fragment program writing to result.depth.z was brokenBrian Paul2005-10-241-13/+18
|
* added _swrast_get_row()Brian Paul2005-09-301-0/+33
|
* added _swrast_put_row()Brian Paul2005-09-291-0/+34
|
* replace GLdepth with GLuint and remove GLdepthBrian Paul2005-09-211-2/+2
|
* Change zLeft and zval to GLuint. Seems to fix 32-bit Z computationBrian Paul2005-09-201-1/+1
|
* Fix potential segfault when trying to read pixels outside renderbuffer bounds.Brian Paul2005-09-161-0/+38
| | | | Use _swrast_get_values() which does clipping.
* Replace GLuint with GLbitfield where appropriate. Also replace GLuintBrian Paul2005-09-151-4/+4
| | | | with GLboolean in a few places.
* Update includes post-splitting of s_texture.cBrian Paul2005-09-151-1/+1
|
* Remove last remnants of pre-renderbuffer code.Brian Paul2005-09-031-22/+0
|
* ATI_fragment_shader fixes: fix bug in passTexCoord (caused by recent ↵Roland Scheidegger2005-09-021-4/+4
| | | | changes). Fix sampling from wrong texture unit. Apply swizzling before texture sampling, and hopefully get non-projected coordinates from swrast. (still does not work at all with sw doom3, way too dark just the same as with the doom3 arb2 path)
* Rearrange the code related to GL_ARB_occlusion_object to generalize queryBrian Paul2005-08-271-4/+6
| | | | objects for future types of queries.
* removed GL_HP_occlusion_test extensionBrian Paul2005-08-251-11/+1
|
* s/clippping/clipping/Brian Paul2005-07-181-2/+2
|
* Remove NEW_RENDERBUFFER stuff.Brian Paul2005-07-011-4/+4
| | | | | Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
* check for NULL swrast->Driver.SetBuffer before calling itBrian Paul2005-06-211-1/+2
|
* be sure we have span texcoords before calling _swrast_texture_span()Brian Paul2005-06-101-2/+2
|
* set OLD_RENDERBUFFER=0, need to clean up a few more things before totally ↵Brian Paul2005-06-041-1/+1
| | | | removing that
* remove old span codeBrian Paul2005-06-041-70/+26
|
* Don't let FragmentProgram._Active influence choice of vertex vs pixelKeith Whitwell2005-05-111-1/+1
| | | | fog.
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-199/+260
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Add a facility to route all rasterization through a fragment programKeith Whitwell2005-05-041-10/+10
| | | | | | | | | | | which is automatically generated to match the current texture environment state. Introduces a new value ctx->FragmentProgram._Active which is true when either _Enabled is true or there is such a fragment program ready to run. To test out on a driver running the software rasterizer, set MESA_TEX_PROG=t in the environment. It goes without saying that performance is lower for the software rasterizer in this mode.
* added interpolate_fog()Brian Paul2005-04-261-0/+26
|
* Implement software ATI_fragment_shaderDave Airlie2004-12-191-1/+6
| | | | no error detection, slow, may not be 100% correct but a good start
* Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul2004-12-181-292/+58
|
* Fix minor fog / fragment program state bug.Brian Paul2004-10-131-9/+11
| | | | Don't add diffuse and specular colors when using fragment program.
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-2/+2
|
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+3
| | | | 1015696)
* fix HP occlusion testing when using generic span pathBrian Paul2004-06-241-3/+12
|
* Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul2004-04-231-10/+10
| | | | | | | program is enabled AND the currently bound program is valid. Check _Enable instead of Enable to prevent things from blowing up when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually defining a program.
* remove some errant code from previous check-inBrian Paul2004-04-231-4/+0
|
* do texcoord projective division in _swrast_span_default_texcoords()Brian Paul2004-04-191-1/+11
|
* Audit/fixes for NV/ARB TEX, TXP, TXB, TXD instructions.Brian Paul2004-04-181-32/+127
| | | | | | Some texture instructions were using wrong LOD. Fixed interpolate_texcoords() so it doesn't do texcoord projective division when using a fragment program. The TXP instruction does that.
* use Driver.WriteMonoRGBAPixels() when possible (Dan Schikore)Brian Paul2004-03-241-11/+29
|
* Implemented support for software-based AUX color buffers.Brian Paul2004-03-211-2/+2
| | | | | | Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
* s/_swrast_exec_nv_fragment_program/_swrast_exec_fragment_program/Brian Paul2004-03-031-3/+3
|
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-2/+2
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a singleKeith Whitwell2004-01-271-2/+2
| | | | array, texObj->Image[face][level].
* Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul2003-12-091-1/+1
| | | | | programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
* current raster color index should be GLfloatBrian Paul2003-11-251-1/+1
|
* Ville Syrjala's logic op patchBrian Paul2003-11-121-3/+3
|