summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/pixel.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: remove FEATURE_pixel_transfer define.Oliver McFadden2012-09-151-6/+0
| | | | | Signed-off-by: Oliver McFadden <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: remove unused gl_pixelmap::Map8[] arrayBrian Paul2012-02-101-2/+0
| | | | Reviewed-by: Jose Fonseca <[email protected]>
* meta: fix GetTexImage() for luminance, l/a, intensity formatsBrian Paul2011-09-301-1/+1
| | | | | | | | The GL spec says that luminance values are returned as (l, 0, 0, 1), L/A values as (l, 0, 0, a) and intensity values as (i, 0, 0, 1). Use the pixel transfer scale controls to implement that. This fixes a few failures in the new piglit getteximage-formats test when getting a compressed L or L/A image.
* mesa: fix error handling for glPixelZoomYuanhan Liu2011-09-191-0/+2
| | | | | | | | | According the man page, GL_INVALID_OPERATION should generated if glPixelZoom is executed between the execution of glBegin and the corresponding execution of glEnd. Signed-off-by: Yuanhan Liu <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Squashed commit of the following:Brian Paul2011-04-261-21/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 864fe253b04105b7469e5f7b064dc37637b944f8 Author: Brian Paul <[email protected]> Date: Thu Apr 21 20:13:07 2011 -0600 mesa: s/exec/disp/ in _mesa_init_histogram_dispatch() This function isn't normally compiled (FEATURE_histogram). commit f4bf45e2b94b582cacd19cdca873c5be627e4250 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:58 2011 -0600 mesa: hook up GL_ARB_robustness dispatch functions ...and advertise the extension. Signed-off-by: Brian Paul <[email protected]> commit 2b89e38e5f572dc40cebc06381ae7c5d04386998 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:58 2011 -0600 mesa: regenerated API files for GL_ARB_robustness Signed-off-by: Brian Paul <[email protected]> commit 5d5ebfb7135cec9d833adef86cbf4d0f3d9beca8 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 glapi: add ARB_robustness xml Signed-off-by: Brian Paul <[email protected]> commit 0159d1d6d99f4bbc18381dc2081c20d3aff17ac9 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: implement GL_ARB_robustness functions Signed-off-by: Brian Paul <[email protected]> commit 938fd71f4c4742f274922d53492a7290ab8d9c9b Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: add context fields for GL_ARB_robustness Signed-off-by: Brian Paul <[email protected]> commit 72075137bc79e65be03dac7e97b6dba93c3a86a4 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: standardize more bounds-checking error messages Signed-off-by: Brian Paul <[email protected]> commit 32a3fc23746db49da903fbc08afa0135af3007d2 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: standardize some bounds-checking error messages Signed-off-by: Brian Paul <[email protected]> commit cecbf1f4d164207de373dec0cadee2e84e1f9656 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: add more bounds-checking support for client memory buffers Signed-off-by: Brian Paul <[email protected]> commit edc895b52383d5bd274422db56adead1d81daf5f Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: add bounds-checking support for client memory buffers Signed-off-by: Brian Paul <[email protected]> commit 3a96ef28a538f158a219b406cd090dee70470c85 Author: nobled <[email protected]> Date: Thu Apr 21 07:53:57 2011 -0600 mesa: use is_bufferobj() helper function Signed-off-by: Brian Paul <[email protected]>
* mesa: remove _MESA_NEW_TRANSFER_STATEBrian Paul2011-03-231-1/+1
|
* mesa: move PBO-related functions into a new fileBrian Paul2011-02-281-0/+1
|
* mesa: remove GL_SGI_texture_color_table supportBrian Paul2011-02-281-3/+0
| | | | | | It was only implemented in the swrast driver and probably not used by any applications. A modern app would use a dependent/chained texture lookup in the fragment shader.
* mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-071-0/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-6/+6
|
* mesa: Remove EXT_convolution.Eric Anholt2010-09-231-82/+0
| | | | More optional code.
* mesa: Remove SGI_color_matrix.Eric Anholt2010-09-231-66/+0
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove SGI_color_table.Eric Anholt2010-09-231-14/+0
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove EXT_histogram.Eric Anholt2010-09-231-8/+0
| | | | This has always been optional, and not useful.
* mesa: Move src/mesa/glapi/dispatch.h to mesa.Chia-I Wu2010-02-251-1/+1
| | | | | | glapi/dispatch.h is a core Mesa header file. Move the header file to main/ to make this clear. It also becomes clear after this change that IN_DRI_DRIVER is only used in core Mesa to enable the remap table.
* mesa: Remove dead error condition.Vinson Lee2010-02-251-1/+1
|
* mesa: replace old MEMCPY macro with memcpyBrian Paul2010-02-191-2/+2
|
* mesa: Enable true refcounting for NullBufferObj.Michal Krol2010-02-091-2/+6
| | | | | | | | This object can be shared with another context, so we cannot just delete it when the owning context is being destroyed. Ensuring that buffer objects are properly refcounted guarantees NullBufferObj is destroyed when all references to it are removed.
* mesa: Remove unnecessary header from pixel.c.Vinson Lee2010-01-181-1/+0
|
* mesa/main: Make FEATURE_pixel_transfer follow feature conventions.Chia-I Wu2009-09-241-9/+31
| | | | | As shown in mfeatures.h, this allows users of pixel.h to work without knowing if the feature is available.
* mesa: use new _mesa_map_pbo_source/dest() functions in more placesBrian Paul2009-09-031-158/+81
| | | | | This trims down the code a bit. The next step would be to combine the validate and map operations into one helper...
* mesa: use _mesa_is_bufferobj()Brian Paul2009-08-121-12/+12
|
* mesa: move the NullBufferObj from GLcontext to gl_shared_stateBrian Paul2009-05-071-6/+6
| | | | | Since shared array objects may point to the null/default buffer object, the null/default buffer object should be part of the shared state.
* mesa: fix comment typoBrian Paul2009-04-221-1/+1
|
* mesa: s/_IMAGE_NEW_TRANSFER_STATE/_MESA_NEW_TRANSFER_STATE/ to be more ↵Brian Paul2009-02-101-1/+1
| | | | consistant with other flags
* mesa: new _mesa_is_pow_two() functionBrian2008-11-101-3/+3
|
* mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca2008-09-231-1/+1
|
* mesa: refactor: move initialization of DefaultPacking state.Brian Paul2008-09-211-20/+0
|
* mesa: refactor: move pixel map/scale/bias code into image.cBrian Paul2008-09-211-407/+11
| | | | pixel.c is just the API-related code now.
* mesa: refactor: new _mesa_init_pixelstore() functionBrian Paul2008-09-211-28/+0
| | | | (cherry picked from commit 5f91007f996d0b7e3233f221a6b0056203e356d2)
* mesa: refactor: move glPixelStore function into new pixelstore.c fileBrian Paul2008-09-211-196/+0
|
* merge from masterBrian2007-03-211-311/+172
|\
| * Colortable re-org.Brian2007-03-161-12/+8
| | | | | | | | | | The pixel transfer path has three color table lookups. Use an array [3] to store that info, rather than separate variables.
| * pixelmap code simplificationBrian2007-03-141-253/+124
| |
| * Re-org of gl_pixel_attrib struct.Brian2007-03-141-112/+106
| | | | | | | | | | | | | | | | Reorder fields according to the order in which the pixel transfer operations take place. Improve comments. Move the pixel maps out of gl_pixel_attrib since they're not supposed to be pushed/popped by glPush/PopAttrib. New gl_pixelmap and gl_pixelmaps structs to contain the pixelmaps.
* | fix ctx->Pixel.PostConvolutionScale/Bias subscript bugsBrian2007-03-131-6/+6
|/
* s/GLchan/GLubyte/Brian Paul2006-10-241-4/+4
|
* Consolidate, move, fix code related to color index and stencil image transferBrian Paul2006-10-131-81/+0
| | | | operations (shift, offset, table lookup, etc).
* Revamp color table code.Brian Paul2006-10-131-416/+176
| | | | Always store all color tables as both float and ubyte.
* remove _mesa_chan_to_float_span(), rename _mesa_map_ci8_to_rgba()Brian Paul2006-10-121-68/+4
|
* _mesa_map_ci_to_rgba_chan() no longer usedBrian Paul2006-10-121-45/+2
|
* Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul2005-12-141-4/+1
| | | | done with fragment programs nowadays.
* Bug 4996.Brian Paul2005-11-091-10/+10
| | | | | Replace use of FLOAT_TO_USHORT with either CLAMPED_FLOAT_TO_USHORT or UNCLAMPED_FLOAT_TO_USHORT. Same should be done for UBYTE, UINT, etc.
* s/IntFormat/InternalFormat/ and s/Format/_BaseFormat/ for gl_color_table.Brian Paul2005-10-051-2/+2
|
* added _mesa_scale_and_bias_depth()Brian Paul2005-09-281-0/+13
|
* the PIXEL_MAP_I_TO_I table should be GLfloat, not GLintBrian Paul2005-08-101-12/+13
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-2/+0
| | | | | | | 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-6/+6
| | | | | | | 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 _mesa_scale_and_bias_rgba() function in the convolution functions.Brian Paul2004-10-311-3/+1
| | | | Minor clean-ups.
* PBO support for gl[Get]PixelMap functionsBrian Paul2004-10-311-82/+371
|