summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_drawpix.c
AgeCommit message (Collapse)Author
2008-04-25gallium: fix typo s/_mesa_unmap_drapix_pbo/_mesa_unmap_drawpix_pbo/Brian Paul
2008-03-21Refactor PBO validate/map code.Brian
We always need to do PBO validation, so do that in core Mesa before calling driv er routine. cherry-picked from Mesa/master.
2008-03-21add a number of PBO validate/map/unmap functionsBrian Paul
Helper functions for (some) drivers, including swrast. cherry-picked from Mesa/master
2007-07-08Change float depthScale param to _mesa_unpack_depth_span() to GLuint depthMax.Brian
2007-07-03use _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457Brian
2007-06-29simplify INIT_SPAN codeBrian
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-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-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-21Fix color sum bug 10688.Brian
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-21merge from masterBrian
2007-03-211D convolution (and post-conv scale/bias) were inadvertantly applied to 2D ↵Brian
image transfers.
2007-03-18mesa: SWAP_BUFF support when calling DrawPixels(DEPTH_COMPONENT)Xiang, Haihao
or TexImage(DEPTH_COMPONENT)
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-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-23fixes for C++ warnings/errorsBrian
2006-10-13Consolidate, move, fix code related to color index and stencil image transferBrian Paul
operations (shift, offset, table lookup, etc).
2006-10-13s/GLuint/GLbitfield/Brian Paul
2006-10-12use _mesa_map_ci8_to_rgba8() instead of _mesa_map_ci8_to_rgba()Brian Paul
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 GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functionsBrian Paul
2006-10-11rewrite/simplify the fast_draw_pixels() functionBrian Paul
2006-10-01New SWspan and SWspanarrays typedefs.Brian Paul
2006-09-21remove rgb[] array from span_arrays_struct - was only used in a few placesBrian Paul
2006-05-22GL_INDEX_OFFSET didn't work with CI->RGB mappings.Brian Paul
Added some const qualifiers.
2006-05-07minor clean-ups around DepthScale/BiasBrian Paul
2006-03-22Need to check for new state and do readpixels/drawpixels clipping afterBrian Paul
we call RENDER_START since that may involve validating the drawable and updating its dimensions.
2006-03-19minor clean-upsBrian Paul
2005-12-14Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul
done with fragment programs nowadays.
2005-11-17optimize drawing GL_DEPTH_STENCIL pixels into a GL_DEPTH_STENCIL renderbufferBrian Paul
2005-11-16Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
2005-11-14remove unneeded RasterPosValid checkBrian Paul
2005-10-31check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul
2005-10-04Use Visual.depthBits rather than Renderbuffer::DepthBits for depth bufferBrian Paul
operations.
2005-09-30minor improvementsBrian Paul
2005-09-29Rewrite much of the pixel zoom code.Brian Paul
Zoomed DrawPixels of packed depth/stencil works now.
2005-09-28Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul
glReadPixels done, glDrawPixels mostly done.
2005-09-27Lift all the format/type error checking out of the _swrast_Draw/Read/CopyPixelsBrian Paul
functions into the _mesa_Draw/Read/CopyPixels functions.
2005-09-22When testing visual attributes, use the Draw/Read buffer, not the context.Brian Paul
2005-09-21replace GLdepth with GLuint and remove GLdepthBrian Paul
2005-09-20remove unneeded sizeof(GLdepth) testBrian Paul
2005-09-15Replace GLuint with GLbitfield where appropriate. Also replace GLuintBrian Paul
with GLboolean in a few places.
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-07-01remove OLD_RENDERBUFFER codeBrian Paul
2005-06-02Remove last of the old span code.Brian Paul
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.
2004-11-10GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpackingBrian Paul
and ignored for 1D and 2D images. Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function. This change gets propogated to some other routines. Also added new _mesa_image_address[123]d() convenience functions.
2004-11-09Removed _swrast_clip_pixelrect(). Use _mesa_clip_drawpixels() instead.Brian Paul
2004-10-31Allow the software fallback glDrawPixels, glReadPixels, glBitmap commands toBrian Paul
work with real, hardware-based PBOs in the future by mapping/unmapping the PBO buffer as needed.