aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_readpix.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor PBO validate/map code.Brian2008-03-211-5/+3
| | | | 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/+7
| | | | Helper functions for (some) drivers, including swrast.
* Fix mismatched map/unmap of buffers in swrast read/drawpixels error paths.Eric Anholt2007-12-181-5/+6
|
* improve 24-bit Z to 32-bit Z conversionBrian2007-11-271-2/+3
|
* merge from masterBrian2007-03-211-1/+5
|\
| * 1D convolution (and post-conv scale/bias) were inadvertantly applied to 2D ↵Brian2007-03-211-0/+4
| | | | | | | | image transfers.
| * fix assertion in read_depth_pixels()Nicolai Haehnle2007-03-181-1/+1
| |
* | Merge branch 'origin' into glsl-compiler-1Brian2007-03-091-9/+17
|\| | | | | | | | | | | Conflicts: src/mesa/main/context.c
| * if renderbuffer ptr is null, just returnBrian2007-02-261-9/+17
| |
* | Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-10/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-10/+13
| |
* | 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.
* Make sure RENDER_FINISH is called on the zero pixel case. Reported byKeith Whitwell2006-11-141-1/+1
| | | | Haihao Xiang.
* Color clamping fixes.Brian Paul2006-10-221-5/+11
|
* Consolidate, move, fix code related to color index and stencil image transferBrian Paul2006-10-131-7/+7
| | | | operations (shift, offset, table lookup, etc).
* In _mesa_pack_rgba_span_float() we don't need to make a temporary copy ofBrian Paul2006-10-131-4/+2
| | | | | | | incoming colors when applying pixel transfer ops. In all cases, the caller either indicates there's no pixel transfer ops, or the incoming colors are coming from temporary storage already and can be safely modified.
* s/GLuint/GLbitfield/Brian Paul2006-10-131-1/+1
|
* adjust_colors() function replaces old _mesa_chan_to_float_span() function.Brian Paul2006-10-121-26/+45
|
* Lots of changes to support runtime renderbuffer depths.Brian Paul2006-10-121-54/+74
| | | | | | _swrast_read_rgba_span() now takes a datatype parameter. New optimization for glReadPixels(format=GL_RGB). New glCopyPixels optimization for the simple, common cases.
* rewrite of read_fast_rgba_pixels()Brian Paul2006-10-061-51/+37
|
* updated commentBrian Paul2006-09-131-1/+1
|
* free convolved image / fix mem leak (bug 7077)Brian Paul2006-05-301-0/+1
|
* minor clean-ups around DepthScale/BiasBrian Paul2006-05-071-6/+5
|
* Need to check for new state and do readpixels/drawpixels clipping afterBrian Paul2006-03-221-5/+15
| | | | | we call RENDER_START since that may involve validating the drawable and updating its dimensions.
* optimize case of reading GL_DEPTH_STENCIL pixels from GL_DEPTH_STENCIL ↵Brian Paul2005-11-171-28/+61
| | | | renderbuffer
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-161-4/+4
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* Use Visual.depthBits rather than Renderbuffer::DepthBits for depth bufferBrian Paul2005-10-041-4/+5
| | | | operations.
* simplify the read_depth_stencil_pixels() functionBrian Paul2005-10-011-27/+14
|
* minor improvementsBrian Paul2005-09-301-5/+5
|
* Rewrite much of the pixel zoom code.Brian Paul2005-09-291-14/+4
| | | | Zoomed DrawPixels of packed depth/stencil works now.
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-10/+97
| | | | glReadPixels done, glDrawPixels mostly done.
* Lift all the format/type error checking out of the _swrast_Draw/Read/CopyPixelsBrian Paul2005-09-271-99/+6
| | | | functions into the _mesa_Draw/Read/CopyPixels functions.
* fix clipped glReadPixels bugBrian Paul2005-09-231-0/+3
|
* When testing visual attributes, use the Draw/Read buffer, not the context.Brian Paul2005-09-221-14/+15
|
* replace GLdepth with GLuint and remove GLdepthBrian Paul2005-09-211-10/+5
|
* lots of little clean-ups, improvementsBrian Paul2005-09-161-63/+63
|
* don't use DEFARRAY/CHECKARRAY stuffBrian Paul2005-09-061-3/+1
|
* Remove last remnants of pre-renderbuffer code.Brian Paul2005-09-031-12/+2
|
* remove old span codeBrian Paul2005-06-041-9/+1
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-30/+61
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpackingBrian Paul2004-11-101-15/+15
| | | | | | | 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.
* use the new _mesa_clip_readpixels() routineBrian Paul2004-11-091-34/+37
|
* don't use ctx->Pack, use the function argumentBrian Paul2004-11-091-13/+12
|
* Allow the software fallback glDrawPixels, glReadPixels, glBitmap commands toBrian Paul2004-10-311-9/+29
| | | | | work with real, hardware-based PBOs in the future by mapping/unmapping the PBO buffer as needed.
* New glTexImage code.Brian Paul2004-04-221-1/+7
| | | | | | | | The gl_texture_format struct now has a StoreTexImageFunc that's called by glTex[Sub]Image[123]D to convert the user's texture data into the specific texture format layout. Now it's much easier to add new texture formats (like the 16/32-bit floating point formats). The texutil.[ch] and texutil_tmp.h files are obsolete.
* Implementation of GL_EXT_pixel_buffer_object extension.Brian Paul2004-03-131-7/+15
| | | | | Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
* rename some span pack/unpack functions for better uniformityBrian Paul2004-02-281-4/+4
|
* added missing <type> error checking in read_index_pixels()Brian Paul2003-11-181-3/+13
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-8/+8
|