summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_span.c
AgeCommit message (Collapse)Author
2007-09-27mesa: make sure the gotten value isn't greater than theXiang, Haihao
max depth buffer value on 64bit system. fix bug #12095
2007-08-16remove reference to ctx->Color.DrawBufferBrian
2007-07-26fix color interpolation for CHAN_BITS==32Brian
2007-06-29Undo some prev glDraw/CopyPixel changes which fixed a bug in which colors ↵Brian
were overwritten by interpolating attributes. Now just set the span->arrayAttribs mask in glDraw/CopyPixels and be sure we don't overwrite the values in interpolate_active_attribs().
2007-06-22fix bug rendering points with fragment program (see #11330)Brian
2007-06-21fix rgba pointer bug hit on zoomed+fogged glDrawPixelsBrian
2007-06-21Another round of fixing attribute interpolation for glDraw/CopyPixels.Brian
Need to turn off FRAG_BIT_COL0 in swrast->_ActiveAttribMask when doing glRead/CopyPixels to prevent the user's colors from getting overwritten when a fragment program is active. This was happening in the DRI drivers when MaintainTexEnv program was used (the texenv fragment program was enabled when _swrast_DrawPixels was called). This still isn't an ideal solution, but fixes things for now.
2007-06-20fix glDrawPixels + fragment program problemBrian
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-05-02changes to get DDX/DDY working againBrian
2007-04-21Fix color sum bug 10688.Brian
2007-04-19Don't allow deferredTexture if using occlusion query and a frag shader.Brian
Occlusion query might depend on the shader killing/discarding fragments. Helps fix depth peeling technique. Also, minor tweaks in interpolate_wpos().
2007-04-18check _PreferPixelFog in _swrast_span_default_fog(), see bug 10669Brian
2007-04-07fix comment typoBrian
2007-03-26Add _swrast_span_default_secondary_color() for use with glBitmap, ↵Brian
glDrawPixels, etc. Secondary color wasn't getting added to post-texture color when drawing bitmaps, images. See bug 10409.
2007-03-13be smarter about which fragment attribs are interpolated before running frag ↵Brian
progs
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-07fix deferredTexture bugBrian
2007-02-02unroll inner loop of interpolate_varying()Brian
2007-02-02simplify interpolate_texcoords()Brian
2007-02-02Replace color, z, w, texture interpolants with new generic attrib interpolants.Brian
2007-02-02New span attrStart/attrStepX/attrStepY fields to replace fog, specular, etc. ↵Brian
fields. More to come.
2007-02-01commentsBrian
2007-02-01New SWspanarrays attribs[] array.Brian
Replace texcoord[], varying[], etc. arrays with single attribs[] array, indexed by FRAG_ATTRIB_* values. Eliminates need to copy data into fragment program machine input registers. Will lead to future clean-ups.
2007-01-25asst fixes, tranpose span->varying array indexesBrian
2006-12-19Overhaul of GLSL API functions, dispatching, etc.Brian
2006-12-15varying var changesBrian
2006-12-15Renamed s_nvfragprog.[ch] to s_fragprog.[ch]Brian
2006-12-14Remove include of s_arbshader.hBrian
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-01fix some bugs in interpolate_specular()Brian Paul
2006-10-22Color clamping fixes.Brian Paul
2006-10-21fix another logic error in computing deferredTextureBrian Paul
2006-10-21For deferredTexture, need to check if the fragment program/shader writesBrian Paul
the fragment Z.
2006-10-21move interpolate_varying() callBrian Paul
2006-10-21Move interpolate_texcoords() and interpolate_varying() calls into ↵Brian Paul
shade_texture_span(). Added some INLINE hints.
2006-10-19Consolidate some code into shade_texture_span().Brian Paul
Clean up logic for deferred texturing/shading.
2006-10-19fix problem when CHAN_BITS == 32 (bug 8704), remove unneeded assertionBrian Paul
2006-10-18added clamp_colors(), updated assertionsBrian Paul
2006-10-17Always convert colors to float before running a fragment shader/program.Brian Paul
2006-10-17Seperate interpolate_colors() and interpolate_specular().Brian Paul
Fix bugs in apply_aa_coverage().
2006-10-17apply_aa_coverage() for ubyte/ushort/floatBrian Paul
2006-10-17Fix CHAN_BITS=32 issues.Brian Paul
Save/restore array->ChanType in case colors are converted.
2006-10-12Lots of changes to support runtime renderbuffer depths.Brian Paul
_swrast_read_rgba_span() now takes a datatype parameter. New optimization for glReadPixels(format=GL_RGB). New glCopyPixels optimization for the simple, common cases.
2006-10-11use _mesa_convert_colors(), update some assertionsBrian Paul
2006-10-06deal with union/aliasing in convert_color_type()Brian Paul
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-24Change logicop, blend, masking functions to use the colors/indexes in theBrian Paul
sw_span object, rather than an explicit parameter.