summaryrefslogtreecommitdiff
path: root/src/mesa/main/drawpix.c
AgeCommit message (Collapse)AuthorFilesLines
2010-03-03mesa: Eliminate index parameter to _mesa_feedback_vertexIan Romanick1-3/+0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-02-25mesa: Move src/mesa/glapi/dispatch.h to mesa.Chia-I Wu1-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.
2010-01-18mesa: Remove unnecessary header from drawpix.c.Vinson Lee1-1/+0
2009-09-30mesa/main: Make FEATURE_drawpix follow feature conventions.Chia-I Wu1-8/+18
As shown in mfeatures.h, this allows users of drawpix.h to work without knowing if the feature is available.
2009-09-01mesa: skip bitmap drawing code if width==0 or height==0Brian Paul1-19/+22
2009-08-20mesa: add GL_DEPTH_STENCIL to glCopyPixels error checkBrian Paul1-1/+8
Plus, add a comment about 'type' error checking. See bug 19087.
2009-08-11mesa: remove _mesa_set_vp_override() from _mesa_Bitmap()Brian Paul1-12/+4
This reverts part of commit 2c9812e3d346eb07180da520909b142e8afc1c59. The calls to _mesa_set_vp_override() were causing extra state validation and caused the gallium state tracker's bitmap cache to get flushed on every call.
2009-08-08mesa: remove old, prototype codeBrian Paul1-65/+0
2009-08-07mesa: use _mesa_set_vp_override() in glDraw/CopyPixels and glBitmapBrian Paul1-14/+38
We don't use the vertex program in these functions and the driver may install its own. This fixes the broken glCopyPixels swrast fallback in i965 and possibly other drivers. In particular, glCopyPixels sometimes didn't work because the fixed-function fragment program was replacing all fragment colors with the current raster color.
2009-08-07mesa: use _mesa_bufferobj_mapped()Brian Paul1-2/+2
2009-08-07mesa: use valid_fragment_program() helperBrian Paul1-3/+15
2009-08-07mesa: do error checking on glCopyPixels() type parameterBrian Paul1-8/+15
Plus, move some other error checks before state validation and update some comments.
2009-04-02mesa: don't call ctx->Driver.Draw/CopyPixels() if width or height is zeroBrian Paul1-24/+28
2009-02-28mesa: replace FEEDBACK_TOKEN macro with _mesa_feedback_token() inline functionBrian Paul1-4/+4
2008-09-11Merge branch 'gallium-0.1' into gallium-0.2Keith Whitwell1-160/+4
A first attempt at moving gallium onto a branch directly off master... It will be interesting to see how much work this takes to get running. Have resolved the conflicts semi-arbitarily, not compiled or tested. Conflicts: .gitignore Makefile configs/config.mgw configs/darwin configs/darwin-x86ppc configs/default configs/freebsd-dri configs/linux-dri configs/linux-dri-xcb configs/linux-fbdev configs/linux-static configs/linux-x86-64-static configs/linux-x86-static doxygen/Makefile include/GL/gl.h progs/demos/Makefile progs/demos/descrip.mms progs/demos/texenv.c progs/egl/.gitignore progs/egl/Makefile progs/glsl/.gitignore progs/glsl/Makefile progs/glsl/convolutions.c progs/samples/Makefile.mgw progs/tests/.gitignore progs/trivial/.gitignore progs/trivial/point-param.c progs/trivial/tri.c progs/xdemos/.gitignore progs/xdemos/glthreads.c src/egl/drivers/demo/Makefile src/egl/drivers/dri/Makefile src/egl/main/Makefile src/glu/Makefile src/glu/sgi/Makefile src/glu/sgi/Makefile.mgw src/glut/glx/Makefile.mgw src/glut/os2/WarpWin.cpp src/glut/os2/glut_cindex.cpp src/glut/os2/glut_gamemode.cpp src/glut/os2/glut_win.cpp src/glut/os2/glut_winmisc.cpp src/glut/os2/os2_glx.cpp src/glut/os2/os2_menu.cpp src/glut/os2/os2_winproc.cpp src/glw/Makefile src/glx/x11/dri_glx.c src/glx/x11/glxext.c src/mesa/Makefile src/mesa/Makefile.mgw src/mesa/descrip.mms src/mesa/drivers/beos/Makefile src/mesa/drivers/common/descrip.mms src/mesa/drivers/common/driverfuncs.c src/mesa/drivers/directfb/Makefile src/mesa/drivers/dri/Makefile.template src/mesa/drivers/dri/common/dri_bufmgr.c src/mesa/drivers/dri/common/dri_bufmgr.h src/mesa/drivers/dri/common/dri_util.c src/mesa/drivers/dri/common/extension_helper.h src/mesa/drivers/dri/common/mmio.h src/mesa/drivers/dri/common/utils.c src/mesa/drivers/dri/common/utils.h src/mesa/drivers/dri/glcore/Makefile src/mesa/drivers/dri/i810/i810screen.c src/mesa/drivers/dri/i915/intel_ioctl.c src/mesa/drivers/dri/i915/intel_ioctl.h src/mesa/drivers/dri/i915/intel_screen.c src/mesa/drivers/dri/i915/server/i830_common.h src/mesa/drivers/dri/i915/server/i830_dri.h src/mesa/drivers/dri/i965/intel_screen.c src/mesa/drivers/dri/i965/server/i830_common.h src/mesa/drivers/dri/i965/server/i830_dri.h src/mesa/drivers/dri/mach64/mach64_screen.c src/mesa/drivers/dri/nouveau/nouveau_context.h src/mesa/drivers/dri/nouveau/nouveau_fifo.c src/mesa/drivers/dri/nouveau/nouveau_fifo.h src/mesa/drivers/dri/nouveau/nouveau_screen.c src/mesa/drivers/dri/nouveau/nouveau_screen.h src/mesa/drivers/dri/r128/r128_tex.h src/mesa/drivers/dri/savage/savageioctl.h src/mesa/drivers/fbdev/Makefile src/mesa/drivers/osmesa/Makefile src/mesa/drivers/osmesa/descrip.mms src/mesa/drivers/x11/Makefile src/mesa/drivers/x11/descrip.mms src/mesa/drivers/x11/xm_dd.c src/mesa/glapi/glapi.c src/mesa/glapi/glthread.c src/mesa/main/api_validate.c src/mesa/main/attrib.c src/mesa/main/bufferobj.c src/mesa/main/bufferobj.h src/mesa/main/buffers.c src/mesa/main/config.h src/mesa/main/context.c src/mesa/main/descrip.mms src/mesa/main/drawpix.c src/mesa/main/enums.c src/mesa/main/fbobject.c src/mesa/main/glheader.h src/mesa/main/imports.c src/mesa/main/mipmap.c src/mesa/main/mm.c src/mesa/main/mm.h src/mesa/main/mtypes.h src/mesa/main/points.c src/mesa/main/sources src/mesa/main/state.c src/mesa/main/texcompress_fxt1.c src/mesa/main/texenvprogram.c src/mesa/main/texobj.c src/mesa/main/texstate.c src/mesa/main/texstore.c src/mesa/math/descrip.mms src/mesa/shader/arbprogram.c src/mesa/shader/descrip.mms src/mesa/shader/prog_execute.c src/mesa/shader/prog_statevars.c src/mesa/shader/prog_statevars.h src/mesa/shader/prog_uniform.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/shader_api.c src/mesa/shader/slang/descrip.mms src/mesa/shader/slang/library/slang_vertex_builtin_gc.h src/mesa/sources src/mesa/swrast/descrip.mms src/mesa/swrast/s_drawpix.c src/mesa/swrast/s_fragprog.c src/mesa/swrast/s_readpix.c src/mesa/swrast/s_span.c src/mesa/swrast_setup/descrip.mms src/mesa/tnl/descrip.mms src/mesa/tnl/t_context.h src/mesa/tnl/t_vp_build.c src/mesa/tnl/tnl.h src/mesa/vbo/descrip.mms src/mesa/vbo/vbo_context.c src/mesa/vbo/vbo_exec_array.c src/mesa/x86-64/xform4.S src/mesa/x86/rtasm/x86sse.c src/mesa/x86/rtasm/x86sse.h windows/VC6/progs/glut/glut.dsp windows/VC7/mesa/gdi/gdi.vcproj windows/VC7/mesa/glu/glu.vcproj windows/VC7/mesa/mesa.sln windows/VC7/mesa/mesa/mesa.vcproj windows/VC7/mesa/osmesa/osmesa.vcproj windows/VC7/progs/glut/glut.vcproj windows/VC8/mesa/gdi/gdi.vcproj windows/VC8/mesa/glu/glu.vcproj windows/VC8/mesa/mesa.sln windows/VC8/mesa/mesa/mesa.vcproj windows/VC8/progs/glut/glut.vcproj
2008-06-09mesa: refactor: move glReadPixels code into new readpix.c fileBrian Paul1-161/+2
2008-05-31mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca1-1/+1
2008-04-29mesa: adjust glBitmap coords by a small epsilonBrian Paul1-2/+3
Fixes problem with bitmaps jumping around by one pixel depending on window size. The rasterpos is often X.9999 instead of X+1. Run progs/redbook/drawf and resize window to check. Cherry picked from gallium-0.1 branch
2008-04-24mesa: adjust glBitmap coords by a small epsilonBrian Paul1-2/+3
Fixes problem with bitmaps jumping around by one pixel depending on window size. The rasterpos is often X.9999 instead of X+1. Run progs/redbook/drawf and resize window to check.
2008-03-21Refactor PBO validate/map code.Brian1-0/+50
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-21Refactor PBO validate/map code.Brian1-0/+50
We always need to do PBO validation, so do that in core Mesa before calling driver routine.
2008-03-21Fix some PBO breakage.Brian1-8/+6
In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset into a PBO. Similarly for _mesa_GetTexImage.
2008-03-21Fix some PBO breakage.Brian1-8/+6
In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset into a PBO. Similarly for _mesa_GetTexImage.
2008-03-17mesa: Follow GL spec to draw DEPTH_COMPONENT pixels whenXiang, Haihao1-2/+1
there's no depth buffer. Fix bug #11580
2007-11-05no-op glCopyPixels if width or height is zeroBrian1-1/+1
2007-10-17Add some FLUSH_CURRENT() calls.Brian1-0/+2
Without these we can find ourselves in _mesa_load_state_parameters() computing derived lighting/material values whhen the current material properties haven't been updated from the VBO. This may be a somewhat wide-spread problem that needs more attention...
2007-10-15check for width or height = 0 before calling driver Bitmap funcBrian1-1/+1
2006-03-26merge from texman branchmesa_20060325Brian Paul1-12/+12
2006-03-20use new _mesa_sourc/dest_buffer_exists() functionsBrian Paul1-48/+26
2006-03-18Don't call Driver->Bitmap() if no image to renderBrian Paul1-5/+7
2005-11-17move _mesa_update_state() calls before error tests that depend on ↵Brian Paul1-11/+11
framebuffer completeness
2005-11-17improved error checking in error_check_format_type()Brian Paul1-6/+6
2005-10-01move around some error checkingBrian Paul1-7/+8
2005-09-28add error checks for framebuffer completenessBrian Paul1-4/+41
2005-09-28Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul1-0/+36
glReadPixels done, glDrawPixels mostly done.
2005-09-27Lift all the format/type error checking out of the _swrast_Draw/Read/CopyPixelsBrian Paul1-5/+110
functions into the _mesa_Draw/Read/CopyPixels functions.
2005-09-09don't generate selection hits for glBitmap, glDraw/CopyPixels. Misc clean-upsBrian Paul1-89/+72
2005-08-25removed GL_HP_occlusion_test extensionBrian Paul1-7/+2
2004-04-23Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul1-6/+3
program is enabled AND the currently bound program is valid. Check _Enable instead of Enable to prevent things from blowing up when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually defining a program.
2004-03-13Implementation of GL_EXT_pixel_buffer_object extension.Brian Paul1-20/+13
Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
2004-02-26check for invalid fragment program in glDrawPixels, glCopyPixels and glBitmapBrian Paul1-3/+23
2003-10-21Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett1-5/+5
points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
2003-08-31added minor assertionBrian Paul1-1/+2
2003-07-17Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell1-29/+34
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick1-1/+0
2003-03-01Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul1-2/+1
Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
2002-10-24Header file clean-up:Brian Paul1-8/+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.
2002-08-21minor error message changesBrian Paul1-3/+3
2002-06-15Added ctx parameter to _mesa_debug()Brian Paul1-1/+66
Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
2002-05-09Minor change to current raster position and texcoords.Brian Paul1-4/+4