aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_drawpix.c
Commit message (Collapse)AuthorAgeFilesLines
* GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpackingBrian Paul2004-11-101-21/+21
| | | | | | | 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.
* Removed _swrast_clip_pixelrect(). Use _mesa_clip_drawpixels() instead.Brian Paul2004-11-091-47/+0
|
* Allow the software fallback glDrawPixels, glReadPixels, glBitmap commands toBrian Paul2004-10-311-5/+28
| | | | | work with real, hardware-based PBOs in the future by mapping/unmapping the PBO buffer as needed.
* set span.y prior to each span write in draw_depth_pixels, like Karl's other fixBrian Paul2004-09-301-11/+11
|
* Fix bug in glDrawPixels when writing color indexed images on color indexedKarl Schultz2004-09-281-2/+2
| | | | | devices. In draw_index_pixels(), use the correct variables for the span Y and span end values.
* consistantly use unpack parameter, instead of ctx->Unpack (Daniel Borca)Brian Paul2004-07-261-26/+32
|
* Minor fixes/optimizations to type conversions in draw_depth_pixels().Brian Paul2004-05-141-27/+41
| | | | Fix off by one errors in a few assertions.
* New glTexImage code.Brian Paul2004-04-221-1/+1
| | | | | | | | 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-8/+13
| | | | | Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
* Remove clamp parameter from _mesa_unpack_color_span_float(). Pass theBrian Paul2004-02-281-3/+2
| | | | | | IMAGE_CLAMP_BIT if needed. Added ClampVertexColors and ClampFragmentColors to GLcontext in anticipation of upcoming extensions (not fully used yet).
* rename some span pack/unpack functions for better uniformityBrian Paul2004-02-281-2/+2
|
* Port over changes from XFree86/Mesa 5.0.2, mostly to silence compiler warnings.Brian Paul2003-12-041-6/+0
|
* indentation fixBrian Paul2003-08-231-1/+1
|
* glDrawPixels(GL_DEPTH_COMPONENT) with glPixelZoom didn't workBrian Paul2003-08-231-12/+6
|
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-6/+4
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-33/+33
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-2/+1
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* casts to silence g++ warningsBrian Paul2003-02-251-2/+2
|
* another fix for glDrawPixels + clippingBrian Paul2003-01-161-9/+21
|
* fix glDrawPixels hang when clippingBrian Paul2003-01-151-15/+30
|
* comment changesBrian Paul2002-12-181-3/+3
|
* properly handle very wide imagesBrian Paul2002-12-051-135/+163
|
* set default texcoords for glBitmap/glDrawPixelsBrian Paul2002-11-251-2/+4
|
* remove some stray debug/abort codeBrian Paul2002-10-301-3/+1
|
* Header file clean-up:Brian Paul2002-10-241-2/+2
| | | | | | | | 1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
* finally get rid of ctx->Texture._ReallyEnabled fieldBrian Paul2002-10-081-3/+3
|
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-110/+115
| | | | | | | data are broken out into a new struct span_arrays which is allocated per-context (to avoid huge stack allocations - a problem on Windows). This lets us use span.redStep instead of span->redStep (for example) to hopefully get slightly better performance in the triangle functions.
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-3/+3
| | | | | | | | | Replace struct gl_texure_object's Dimension w/ Target field. Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled field is obsolete, but still present for now. This effectively removes the 8-texture units limit, 32 units now possible, but unlikely! New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field. Updated device drivers to use ctx->Texture._EnabledUnits.
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-2/+58
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* Allocate a sw_span struct in the swrast context instead of allocating itBrian Paul2002-04-191-114/+109
| | | | | on the stack frame in the point/line/triangle functions. (Klaus Niederkrueger) This should solve the performance problem Karl found on Windows.
* Klaus Niederkrueger's latest changes: use INIT_SPAN() to init span primitiveBrian Paul2002-04-121-16/+16
| | | | type, width, interp mask and array mask.
* don't include s_fog.hBrian Paul2002-02-171-2/+1
|
* fixed float->int conversion. Fix conditional for 16-bit Z buffer pathBrian Paul2002-02-151-22/+16
|
* sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul2002-02-021-21/+4
| | | | | ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
* Clean-up and optimize alpha test code.Brian Paul2002-01-311-83/+85
| | | | Major clean-up of pixel zoom code.
* More span clean-up, mostly texture-related.Brian Paul2002-01-281-2/+1
| | | | | _mesa_rasterize_span() is gone, replaced by new _mesa_write_textured_span(). Removed some unneeded triangle functions - more simplification possible.
* LOTS of changes, building upon Klaus's work.Brian Paul2002-01-271-102/+88
| | | | | struct sw_span is used throughout span/fragment processing. This is leading to less code and more chances for optimization.
* added some missing error checksBrian Paul2002-01-151-1/+6
|
* Klaus's latest patches: change texcoord[3] to texcoord[4] everywhereBrian Paul2002-01-101-26/+8
|
* first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul2001-12-171-10/+21
|
* More raster fog coord fixes.Brian Paul2001-06-261-11/+7
| | | | | New truncate vs. floor comments in drawpixels.c Added current raster secondary color state, not used yet.
* fix glDraw/CopyPixels w/ fog bug. minor fog code clean-ups.Brian Paul2001-06-181-5/+20
|
* added current raster fog coord and related codeBrian Paul2001-05-301-5/+13
|
* use DEFARRAY, etc macros to work around 32k data limit on Macs (Tom Goon)Brian Paul2001-05-161-3/+14
|
* Apply antialiasing coverage factor to alpha after texture application,Brian Paul2001-05-151-15/+20
| | | | not before.
* Minor fixes for Win32 (Karl Schultz).Brian Paul2001-04-201-3/+3
|
* Added IROUND_POS() macro to mmath.h and use where appropriate. (Klaus ↵Brian Paul2001-04-101-2/+2
| | | | Niederkrueger)
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-14/+22
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-11/+10
|
* More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.Brian Paul2001-03-081-2/+2
|