summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_context.c
AgeCommit message (Collapse)Author
2007-01-08Remove if (tObj) conditional so that texture units without a texture imageBrian
return black (0,0,0,1) when sampled.
2006-12-19Overhaul of GLSL API functions, dispatching, etc.Brian
2006-12-14Updated includes.Brian
2006-12-13Checkpoint for GLSL compiler changes.Brian
In brief: Check for enabled fragment program by looking at ctx->FragmentProgram._Current. New code for varying variables.
2006-11-02always load frag prog state params for now (see comments)Brian Paul
2006-10-31make use of Parameters->StateFlags in _swrast_update_fragment_program()Brian Paul
2006-10-31We need to call _mesa_load_state_parameters() whenever a fragment programBrian Paul
is enabled and we've changed any GL state that might be referenced by a fragment program (such as state.fog.params). Do this during swrast validation, not in _swrast_exec_fragment_program().
2006-10-01New SWspan and SWspanarrays typedefs.Brian Paul
2006-09-29more changes for runtime renderbuffer depthsBrian Paul
2006-09-25Initial work for supporting different renderbuffer color depths at runtime.Brian Paul
2006-09-22Use _Enabled rather than _Active when checking for fragment shadersKeith Whitwell
2006-08-29Move call to _swrast_update_rasterflags() since it depends on theBrian Paul
results of _swrast_update_fog_state(). Fixes bug where first frame of progs/samples/fog.c does not show fog.
2006-07-20Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul
"gl_" to match other structs.
2006-05-23Add const qualifiers in a number of places.Brian Paul
2006-04-14Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]UnitsBrian Paul
in various places. Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image limits when referenced, not just in glActiveTexture().
2006-03-26merge from texman branchBrian Paul
2006-03-25remove carriage returnsBrian Paul
2006-03-21GLSL fixes:Michal Krol
- 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;
2006-02-28check for active shader, set FRAGPROG_BIT in raster maskBrian Paul
2006-01-26New comments, clean-up of fields related to point/line/triangle validation.Brian Paul
2005-11-12Added OSMesaColorClamp(), bug 4917Brian Paul
2005-11-12Move stuff common to vertex/fragment_program into the base class, including:Brian Paul
Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program().
2005-11-05remove unneeded #includeBrian Paul
2005-10-31check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul
2005-09-16Rework the texture filtering functions a bit.Brian Paul
No need to pass the texture unit number as an argument.
2005-09-16more GLuint->GLbitfield changesBrian Paul
2005-09-15Replace GLuint with GLbitfield where appropriate. Also replace GLuintBrian Paul
with GLboolean in a few places.
2005-09-15Update includes post-splitting of s_texture.cBrian Paul
2005-09-05remove obsolete CurrentBufferBitBrian Paul
2005-08-27Rearrange the code related to GL_ARB_occlusion_object to generalize queryBrian Paul
objects for future types of queries.
2005-08-25removed GL_HP_occlusion_test extensionBrian Paul
2005-07-01Remove NEW_RENDERBUFFER stuff.Brian Paul
Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
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