Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix an assertion | Brian Paul | 2006-04-26 | 1 | -1/+1 |
| | |||||
* | Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]Units | Brian Paul | 2006-04-14 | 1 | -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 Krol | 2006-04-11 | 1 | -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 Krol | 2006-03-21 | 1 | -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 Scheidegger | 2006-03-03 | 1 | -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/shading | Brian Paul | 2006-02-28 | 1 | -1/+2 |
| | |||||
* | Add arbshader stage. | Michal Krol | 2006-02-15 | 1 | -5/+16 |
| | |||||
* | get depthBits from the current drawbuffer | Brian Paul | 2005-12-01 | 1 | -3/+3 |
| | |||||
* | Added OSMesaColorClamp(), bug 4917 | Brian Paul | 2005-11-12 | 1 | -0/+14 |
| | |||||
* | check swrast->_FogEnabled instead of ctx->Fog.Enabled | Brian Paul | 2005-10-31 | 1 | -2/+2 |
| | |||||
* | fragment program writing to result.depth.z was broken | Brian Paul | 2005-10-24 | 1 | -13/+18 |
| | |||||
* | added _swrast_get_row() | Brian Paul | 2005-09-30 | 1 | -0/+33 |
| | |||||
* | added _swrast_put_row() | Brian Paul | 2005-09-29 | 1 | -0/+34 |
| | |||||
* | replace GLdepth with GLuint and remove GLdepth | Brian Paul | 2005-09-21 | 1 | -2/+2 |
| | |||||
* | Change zLeft and zval to GLuint. Seems to fix 32-bit Z computation | Brian Paul | 2005-09-20 | 1 | -1/+1 |
| | |||||
* | Fix potential segfault when trying to read pixels outside renderbuffer bounds. | Brian Paul | 2005-09-16 | 1 | -0/+38 |
| | | | | Use _swrast_get_values() which does clipping. | ||||
* | Replace GLuint with GLbitfield where appropriate. Also replace GLuint | Brian Paul | 2005-09-15 | 1 | -4/+4 |
| | | | | with GLboolean in a few places. | ||||
* | Update includes post-splitting of s_texture.c | Brian Paul | 2005-09-15 | 1 | -1/+1 |
| | |||||
* | Remove last remnants of pre-renderbuffer code. | Brian Paul | 2005-09-03 | 1 | -22/+0 |
| | |||||
* | ATI_fragment_shader fixes: fix bug in passTexCoord (caused by recent ↵ | Roland Scheidegger | 2005-09-02 | 1 | -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 query | Brian Paul | 2005-08-27 | 1 | -4/+6 |
| | | | | objects for future types of queries. | ||||
* | removed GL_HP_occlusion_test extension | Brian Paul | 2005-08-25 | 1 | -11/+1 |
| | |||||
* | s/clippping/clipping/ | Brian Paul | 2005-07-18 | 1 | -2/+2 |
| | |||||
* | Remove NEW_RENDERBUFFER stuff. | Brian Paul | 2005-07-01 | 1 | -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 it | Brian Paul | 2005-06-21 | 1 | -1/+2 |
| | |||||
* | be sure we have span texcoords before calling _swrast_texture_span() | Brian Paul | 2005-06-10 | 1 | -2/+2 |
| | |||||
* | set OLD_RENDERBUFFER=0, need to clean up a few more things before totally ↵ | Brian Paul | 2005-06-04 | 1 | -1/+1 |
| | | | | removing that | ||||
* | remove old span code | Brian Paul | 2005-06-04 | 1 | -70/+26 |
| | |||||
* | Don't let FragmentProgram._Active influence choice of vertex vs pixel | Keith Whitwell | 2005-05-11 | 1 | -1/+1 |
| | | | | fog. | ||||
* | Major check-in of changes for GL_EXT_framebuffer_object extension. | Brian Paul | 2005-05-04 | 1 | -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 program | Keith Whitwell | 2005-05-04 | 1 | -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 Paul | 2005-04-26 | 1 | -0/+26 |
| | |||||
* | Implement software ATI_fragment_shader | Dave Airlie | 2004-12-19 | 1 | -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 Paul | 2004-12-18 | 1 | -292/+58 |
| | |||||
* | Fix minor fog / fragment program state bug. | Brian Paul | 2004-10-13 | 1 | -9/+11 |
| | | | | Don't add diffuse and specular colors when using fragment program. | ||||
* | added support for GL_ARB_draw_buffers | Brian Paul | 2004-10-02 | 1 | -2/+2 |
| | |||||
* | Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵ | Brian Paul | 2004-08-25 | 1 | -0/+3 |
| | | | | 1015696) | ||||
* | fix HP occlusion testing when using generic span path | Brian Paul | 2004-06-24 | 1 | -3/+12 |
| | |||||
* | Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragment | Brian Paul | 2004-04-23 | 1 | -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-in | Brian Paul | 2004-04-23 | 1 | -4/+0 |
| | |||||
* | do texcoord projective division in _swrast_span_default_texcoords() | Brian Paul | 2004-04-19 | 1 | -1/+11 |
| | |||||
* | Audit/fixes for NV/ARB TEX, TXP, TXB, TXD instructions. | Brian Paul | 2004-04-18 | 1 | -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 Paul | 2004-03-24 | 1 | -11/+29 |
| | |||||
* | Implemented support for software-based AUX color buffers. | Brian Paul | 2004-03-21 | 1 | -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 Paul | 2004-03-03 | 1 | -3/+3 |
| | |||||
* | A bit of an overhaul of the fog code. | Brian Paul | 2004-02-17 | 1 | -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 single | Keith Whitwell | 2004-01-27 | 1 | -2/+2 |
| | | | | array, texObj->Image[face][level]. | ||||
* | Update NEED_SECONDARY_COLOR macro to test if either vertex/fragment | Brian Paul | 2003-12-09 | 1 | -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 GLfloat | Brian Paul | 2003-11-25 | 1 | -1/+1 |
| | |||||
* | Ville Syrjala's logic op patch | Brian Paul | 2003-11-12 | 1 | -3/+3 |
| |