aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_context.h
Commit message (Collapse)AuthorAgeFilesLines
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-2/+2
| | | | of -I flags.
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-0/+5
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* Improve the code for interpolating fragment attributes a little. More to ↵Brian2007-04-231-6/+19
| | | | come...
* Put gl_program_machine into swrast structure rather than using a local variable.Brian2007-04-191-2/+6
| | | | | Basically an easy way to make sure the memory gets initialized once (to zero) to avoid lots of valgrind warnings.
* Enable texture sampling for vertex programs/shaders.Brian2007-04-171-0/+3
| | | | | | | This is a bit of a hack for now because the tnl module is using the swrast module to fetch texels. The texture fetch/filter code should probably be moved into the main/ module since it doesn't really depend upon other swrast code.
* Implement support for GL_ARB_draw_buffers with GL_MAX_DRAW_BUFFERS > 1.Brian2007-03-111-0/+4
| | | | | | GL_MAX_DRAW_BUFFERS is currently 4. Added gl_FragData[] output for fragment programs. In _swrast_write_rgba_span() loop over the color outputs/renderbuffers.
* Merge SWvertex texcoord and varying fields into attrib[] array field.Brian2007-02-051-0/+7
| | | | | Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
* move span-related types/tokens into s_span.hBrian2007-02-011-200/+3
|
* new comments, ideasBrian2007-01-251-21/+22
|
* varying var changesBrian2006-12-151-4/+4
|
* Lots of changes to support runtime renderbuffer depths.Brian Paul2006-10-121-0/+10
| | | | | | _swrast_read_rgba_span() now takes a datatype parameter. New optimization for glReadPixels(format=GL_RGB). New glCopyPixels optimization for the simple, common cases.
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-11/+12
|
* more changes for runtime renderbuffer depthsBrian Paul2006-09-291-1/+1
|
* Initial work for supporting different renderbuffer color depths at runtime.Brian Paul2006-09-251-4/+37
|
* remove rgb[] array from span_arrays_struct - was only used in a few placesBrian Paul2006-09-211-4/+2
|
* More GLSL code:Michal Krol2006-04-111-1/+6
| | | | | | | | | | | | - 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;
* merge from texman branchmesa_20060325Brian Paul2006-03-261-0/+7
|
* New comments, clean-up of fields related to point/line/triangle validation.Brian Paul2006-01-261-9/+18
|
* Added OSMesaColorClamp(), bug 4917Brian Paul2005-11-121-0/+1
|
* At keithw's request, remove all traces of the "fragment program to C" andIan Romanick2005-11-081-14/+0
| | | | TCC experiment.
* replace GLdepth with GLuint and remove GLdepthBrian Paul2005-09-211-2/+2
|
* change some commentsBrian Paul2005-09-161-5/+4
|
* Rework the texture filtering functions a bit.Brian Paul2005-09-161-2/+1
| | | | No need to pass the texture unit number as an argument.
* more GLuint->GLbitfield changesBrian Paul2005-09-161-4/+4
|
* Replace GLuint with GLbitfield where appropriate. Also replace GLuintBrian Paul2005-09-151-5/+5
| | | | with GLboolean in a few places.
* remove obsolete CurrentBufferBitBrian Paul2005-09-051-1/+0
|
* Remove last remnants of pre-renderbuffer code.Brian Paul2005-09-031-2/+2
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-3/+0
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Implement software ATI_fragment_shaderDave Airlie2004-12-191-0/+1
| | | | no error detection, slow, may not be 100% correct but a good start
* Fix minor fog / fragment program state bug.Brian Paul2004-10-131-0/+1
| | | | Don't add diffuse and specular colors when using fragment program.
* More updates for Doxygen.Brian Paul2004-09-101-0/+11
|
* Use tcc and the emitted C code from s_fragprog_to_c.c to dynamically compileKeith Whitwell2004-04-141-0/+14
| | | | | | | | | and execute fragment programs. Very limited and experimental, but works well enough to run arbfplight.c. http://fabrice.bellard.free.fr/tcc/ Compile with 'make linux-tcc', being sure to make clean first.
* Implemented support for software-based AUX color buffers.Brian Paul2004-03-211-1/+2
| | | | | | Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-3/+5
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* added SPAN_WBrian Paul2004-02-171-8/+9
|
* More SciTech SNAP updates. Some of these files didn't really change, butKendall Bennett2003-10-221-5/+0
| | | | | | | they show up in the list (GLU stuff) for some reason. The major change here is the addition of code in the glx86asm.py file to generate assembler stub entry points with the correct name decorations for _stdcall calling conventions so this can be used on Windows boxes.
* s/_backface_sign/_BackfaceSign/Brian Paul2003-09-181-1/+1
|
* move a commentBrian Paul2003-09-171-24/+22
|
* Use ctx->Const.MaxTextureImageUnits and MaxTextureCoordUnits in more places.Brian Paul2003-05-011-2/+2
| | | | Misc vertex array / vertex program changes.
* Store partial derivative values in sw_span structure.Brian Paul2003-03-161-1/+16
| | | | | Implemented DDX and DDY fragment program instructions (whew!) Not fully tested yet.
* minor typoBrian Paul2003-02-281-2/+2
|
* Move span stuff from swrast.h to s_context.h (it's private).Brian Paul2003-02-231-15/+154
| | | | | Implemented remaining fragment program instructions. Initial changes to implement fragment program texture sampling.
* First batch of code for GL_NV_fragment_program.Brian Paul2003-01-141-4/+4
| | | | | Re-org of some GL_NV_vertex_program code. Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
* updated email addressesBrian Paul2002-10-291-3/+3
|
* Another round of glRead/DrawBuffer() clean-ups and simplifications.Brian Paul2002-10-111-1/+2
| | | | | | | Replaced ctx->Color._DriverDrawBuffer with swrast->CurrentBuffer. Replaced ctx->Pixel._DriverReadBuffer with ctx->Pixel._ReadSrcMask. swrast->Driver.SetBuffer() takes FRONT/BACK_LEFT/RIGHT_BIT values now. Added tokens and code for GL_AUX buffers, for completeness.
* multiple GL_POINTS can now be rendered together into one fragment spanBrian Paul2002-10-041-2/+8
|
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-2/+8
| | | | | | | data are broken out into a new struct span_arrays which is allocated per-context (to avoid huge stack allocations - a problem on Windows). This lets us use span.redStep instead of span->redStep (for example) to hopefully get slightly better performance in the triangle functions.
* Implemented GL_ARB_texture_env_crossbar.Brian Paul2002-05-021-1/+7
| | | | Simplification of some of the texture application code.
* Allocate a sw_span struct in the swrast context instead of allocating itBrian Paul2002-04-191-32/+47
| | | | | on the stack frame in the point/line/triangle functions. (Klaus Niederkrueger) This should solve the performance problem Karl found on Windows.
* Converted line drawing over to new span code, pb no longer used.Brian Paul2002-02-021-2/+1
| | | | | Big clean-up of line drawing code. Removed many obsolete span processing functions.