aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_drawpix.c
Commit message (Collapse)AuthorAgeFilesLines
...
* mesa: consolidate PBO map/unmap helpersBrian Paul2009-09-031-2/+2
| | | | | | | Instead of _mesa_map_readpix_pbo() use _mesa_map_pbo_source(). Instead of _mesa_map_drawpix_pbo() and _mesa_map_bitmap_pbo() use _mesa_map_pbo_dest().
* swrast: Set vp_override flag during DrawPixelsNicolai Haehnle2009-02-181-0/+11
| | | | | | | | | Obviously, the color of fragments produced by DrawPixels is not constant, even if the current vertex array / vertex program state indicates that the color for normal rendering will be constant. Therefore, we need to override certain optimisations that have been added to texenvprogram.c Signed-off-by: Nicolai Haehnle <[email protected]>
* swrast: fix typo: s/drapix/drawpix/Brian Paul2009-02-091-1/+1
|
* swrast: replace RENDER_START/FINISH macros with inline functionsBrian Paul2009-01-301-5/+5
|
* mesa: remove unneeded s_drawpix.h headerBrian2008-09-181-1/+0
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-9/+9
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: Call RENDER_FINISH on the zero pixel case.Xiang, Haihao2008-05-081-1/+3
|
* Refactor PBO validate/map code.Brian2008-03-211-2/+1
| | | | We always need to do PBO validation, so do that in core Mesa before calling driver routine.
* add a number of PBO validate/map/unmap functionsBrian2008-03-211-27/+5
| | | | Helper functions for (some) drivers, including swrast.
* Fix some issues with glDrawBuffer(GL_NONE), bug 14198Brian2008-01-221-1/+6
| | | | | Set _ColorDrawBuffers[0] = NULL if no renderbuffers enabled. Check that _ColorDrawBuffers[0] is non-null before dereferencing in a few places.
* Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian2008-01-061-3/+3
| | | | | | | | | | | These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
* Fix mismatched map/unmap of buffers in swrast read/drawpixels error paths.Eric Anholt2007-12-181-4/+4
|
* Change float depthScale param to _mesa_unpack_depth_span() to GLuint depthMax.Brian2007-07-081-3/+3
|
* use _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457Brian2007-07-031-6/+5
|
* simplify INIT_SPAN codeBrian2007-06-291-4/+9
|
* Undo some prev glDraw/CopyPixel changes which fixed a bug in which colors ↵Brian2007-06-291-11/+4
| | | | | | | 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().
* Another round of fixing attribute interpolation for glDraw/CopyPixels.Brian2007-06-211-4/+13
| | | | | | | | | | 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.
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-34/+9
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* Fix color sum bug 10688.Brian2007-04-211-6/+3
|
* Add _swrast_span_default_secondary_color() for use with glBitmap, ↵Brian2007-03-261-1/+6
| | | | | | | glDrawPixels, etc. Secondary color wasn't getting added to post-texture color when drawing bitmaps, images. See bug 10409.
* merge from masterBrian2007-03-211-2/+9
|\
| * 1D convolution (and post-conv scale/bias) were inadvertantly applied to 2D ↵Brian2007-03-211-0/+5
| | | | | | | | image transfers.
| * mesa: SWAP_BUFF support when calling DrawPixels(DEPTH_COMPONENT)Xiang, Haihao2007-03-181-2/+4
| | | | | | | | or TexImage(DEPTH_COMPONENT)
* | Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-6/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * fixes for C++ warnings/errorsBrian2007-01-231-6/+10
| |
* | New SWspanarrays attribs[] array.Brian2007-02-011-1/+1
|/ | | | | | | 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.
* Consolidate, move, fix code related to color index and stencil image transferBrian Paul2006-10-131-7/+1
| | | | operations (shift, offset, table lookup, etc).
* s/GLuint/GLbitfield/Brian Paul2006-10-131-1/+1
|
* use _mesa_map_ci8_to_rgba8() instead of _mesa_map_ci8_to_rgba()Brian Paul2006-10-121-8/+10
|
* Lots of changes to support runtime renderbuffer depths.Brian Paul2006-10-121-76/+73
| | | | | | _swrast_read_rgba_span() now takes a datatype parameter. New optimization for glReadPixels(format=GL_RGB). New glCopyPixels optimization for the simple, common cases.
* use GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functionsBrian Paul2006-10-111-9/+6
|
* rewrite/simplify the fast_draw_pixels() functionBrian Paul2006-10-111-349/+221
|
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-4/+4
|
* remove rgb[] array from span_arrays_struct - was only used in a few placesBrian Paul2006-09-211-15/+16
|
* GL_INDEX_OFFSET didn't work with CI->RGB mappings.Brian Paul2006-05-221-18/+20
| | | | Added some const qualifiers.
* minor clean-ups around DepthScale/BiasBrian Paul2006-05-071-2/+2
|
* Need to check for new state and do readpixels/drawpixels clipping afterBrian Paul2006-03-221-4/+10
| | | | | we call RENDER_START since that may involve validating the drawable and updating its dimensions.
* minor clean-upsBrian Paul2006-03-191-4/+4
|
* Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul2005-12-141-5/+0
| | | | done with fragment programs nowadays.
* optimize drawing GL_DEPTH_STENCIL pixels into a GL_DEPTH_STENCIL renderbufferBrian Paul2005-11-171-67/+99
|
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-161-2/+2
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* remove unneeded RasterPosValid checkBrian Paul2005-11-141-4/+0
|
* check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul2005-10-311-4/+7
|
* Use Visual.depthBits rather than Renderbuffer::DepthBits for depth bufferBrian Paul2005-10-041-6/+4
| | | | operations.
* minor improvementsBrian Paul2005-09-301-4/+4
|
* Rewrite much of the pixel zoom code.Brian Paul2005-09-291-86/+86
| | | | Zoomed DrawPixels of packed depth/stencil works now.
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-10/+103
| | | | glReadPixels done, glDrawPixels mostly done.
* Lift all the format/type error checking out of the _swrast_Draw/Read/CopyPixelsBrian Paul2005-09-271-44/+12
| | | | functions into the _mesa_Draw/Read/CopyPixels functions.
* When testing visual attributes, use the Draw/Read buffer, not the context.Brian Paul2005-09-221-5/+6
|
* replace GLdepth with GLuint and remove GLdepthBrian Paul2005-09-211-2/+2
|