summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_context.c
AgeCommit message (Collapse)Author
2005-05-11Don't let FragmentProgram._Active influence choice of vertex vs pixelKeith Whitwell
fog.
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2005-05-04Add a facility to route all rasterization through a fragment programKeith Whitwell
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.
2004-12-19Implement software ATI_fragment_shaderDave Airlie
no error detection, slow, may not be 100% correct but a good start
2004-12-18Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul
2004-10-31Removed _swrast_validate_pbo_access().Brian Paul
In x11 driver, map/unmap PBO as needed in DrawPixels functions.
2004-10-13Fix minor fog / fragment program state bug.Brian Paul
Don't add diffuse and specular colors when using fragment program.
2004-10-02added support for GL_ARB_draw_buffersBrian Paul
2004-08-25Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul
1015696)
2004-06-24fix capitalization, new comments, etcBrian Paul
2004-06-02Check for NULL texture object when choosing texture sampler. Fixes segfault ↵Brian Paul
when fragment program references an incomplete texture
2004-04-23Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul
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.
2004-03-21Implemented support for software-based AUX color buffers.Brian Paul
Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
2004-03-13Implementation of GL_EXT_pixel_buffer_object extension.Brian Paul
Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
2004-02-27move _mesa_load_state_parameters() to state validation stageBrian Paul
2004-02-17A bit of an overhaul of the fog code.Brian Paul
glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
2003-12-09Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul
programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
2003-11-12Ville Syrjala's logic op patchBrian Paul
2003-10-22More SciTech SNAP updates. Some of these files didn't really change, butKendall Bennett
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.
2003-10-21Updates to SSE assembler support for Open WatcomKendall Bennett
2003-10-10remove bogus _swrast_texture_table_lookup() call (Eric Plante)Brian Paul
2003-09-18Move away from using the ctx->_TriangleCaps bitfield.Brian Paul
New macros in context.h for testing state: NEED_SECONDARY_COLOR and NEED_TWO_SIDED_LIGHTING.
2003-09-18s/_backface_sign/_BackfaceSign/Brian Paul
2003-06-13Implemented GL_ARB_occlusion_query (not 100% finalized).Brian Paul
2003-05-01Use ctx->Const.MaxTextureImageUnits and MaxTextureCoordUnits in more places.Brian Paul
Misc vertex array / vertex program changes.
2003-04-08Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul
Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
2003-03-25replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul
2003-03-15Fix up some fragment program texture enable issues.Brian Paul
Implemented TXD instruction.
2003-03-14Clean-up of parser error handling/reporting.Brian Paul
Basic fragment program texture instructions are limping along.
2003-02-23Move span stuff from swrast.h to s_context.h (it's private).Brian Paul
Implemented remaining fragment program instructions. Initial changes to implement fragment program texture sampling.
2003-01-26Make GL_SGI_texture_color_table work per-texture unit.Brian Paul
Clean-up and optimize _swrast_texture_table_lookup().
2003-01-14First batch of code for GL_NV_fragment_program.Brian Paul
Re-org of some GL_NV_vertex_program code. Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
2002-10-29updated email addressesBrian Paul
2002-10-24Header file clean-up:Brian Paul
1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
2002-10-11init swrast->CurrentBufferBrian Paul
2002-10-04multiple GL_POINTS can now be rendered together into one fragment spanBrian Paul
2002-09-17pull-in changes from DRI/Mesa-4.0.4Brian Paul
2002-08-07struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul
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.
2002-07-09Overhaul of glRead/DrawBuffer() code. Now, swrast->Driver.SetBuffer()Brian Paul
indicates the read AND draw color buffer for all software rasterization. Lots of related clean-ups. See RELNOTES-4.1 for details.
2002-06-15Implemented GL_NV_texture_rectangle extension.Brian Paul
Replace struct gl_texure_object's Dimension w/ Target field. Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled field is obsolete, but still present for now. This effectively removes the 8-texture units limit, 32 units now possible, but unlikely! New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field. Updated device drivers to use ctx->Texture._EnabledUnits.
2002-06-15Added ctx parameter to _mesa_debug()Brian Paul
Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
2002-06-13more removal of fprintf() callsBrian Paul
2002-05-02Implemented GL_ARB_texture_env_crossbar.Brian Paul
Simplification of some of the texture application code.
2002-04-19Allocate a sw_span struct in the swrast context instead of allocating itBrian Paul
on the stack frame in the point/line/triangle functions. (Klaus Niederkrueger) This should solve the performance problem Karl found on Windows.
2002-04-19casts to fix GLint/GLuint mismatchesBrian Paul
2002-02-02Converted line drawing over to new span code, pb no longer used.Brian Paul
Big clean-up of line drawing code. Removed many obsolete span processing functions.
2002-02-02sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul
ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
2002-01-10Klaus's latest patches: change texcoord[3] to texcoord[4] everywhereBrian Paul
2001-12-17first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul
2001-07-28Remove _BaseAlpha, fix reflect lighting bug.Keith Whitwell