summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_context.c
AgeCommit message (Collapse)Author
2007-08-16check for null swrast (pipe work-around)Brian
2007-07-04Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian
of -I flags.
2007-06-21rename _swrast_update_fragment_attribs()Brian
2007-05-24fix logic for calling _swrast_update_deferred_texture()Brian
2007-05-22don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression)Brian
2007-05-20Overhaul/simplify SWvertex and SWspan attribute handling.Brian
Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
2007-04-25fix attribsMask (re-fixes depth peeling algorithm)Brian
2007-04-23disable some errant codeBrian
2007-04-23remove SWvertex->fog field, use attrib fieldBrian
2007-04-23Improve the code for interpolating fragment attributes a little. More to ↵Brian
come...
2007-04-18improved fog commentBrian
2007-04-17Enable texture sampling for vertex programs/shaders.Brian
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.
2007-04-07fix references to non-existant sz4 fieldRichard Hughes
2007-03-11Implement support for GL_ARB_draw_buffers with GL_MAX_DRAW_BUFFERS > 1.Brian
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.
2007-03-10clean-up formattingBrian
2007-02-24Remove unneeded _Fragment/VertexShaderPresent fields, update comments.Brian
2007-02-22Merge branch 'origin' into glsl-compiler-1Brian
Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
2007-02-05Merge SWvertex texcoord and varying fields into attrib[] array field.Brian
Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
2007-02-02get rid of unused span->start fieldBrian
2007-01-23silence C++ warningsBrian
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-16don't allow fog when using a fragment shader (bug 9346)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