summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common
Commit message (Collapse)AuthorAgeFilesLines
* meta: Use the DrawBuffer's stencil sizeIan Romanick2010-03-051-1/+1
| | | | | | | | | Previously the code was erroneously using the stencil size of the context instead of the stencil size of the DrawBuffer. With FBOs these may be different. As a result, clearing the stencil buffer of an FBO bound to a context that doesn't have stencil would fail. Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove ClearIndex and IndexMask from device-driver interfaceIan Romanick2010-03-031-2/+0
| | | | | | | | These are used to inform the driver of the clear value for color-index buffers and to control write-masking of bits in color-index buffers. No driver use or need (not even Nouveau) these interfaces. Signed-off-by: Ian Romanick <[email protected]>
* mesa: disable unreachable meta mipmap gen codeBrian Paul2010-02-241-0/+3
| | | | | | | More work is needed to support 3D mipmap generation. Disable unreachable code until then. See bug 26722.
* mesa: restore _mesa_snprintf() - it's needed for WindowsBrian Paul2010-02-191-3/+3
| | | | This reverts part of commit 298be2b028263b2c343a707662c6fbfa18293cb2
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-3/+3
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-17/+17
|
* mesa: replace _mesa_bzero() with memset()Brian Paul2010-02-191-1/+1
|
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-192-7/+7
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* mesa: Remove unnecessary headers.Vinson Lee2010-02-122-3/+0
|
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-081-18/+29
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c
| * meta: remove F suffix from _mesa_Ortho() paramsBrian Paul2010-01-061-3/+3
| | | | | | | | _mesa_Ortho() takes GLdoubles.
| * meta: move destination vertex/projection setup out of _mesa_meta_GenerateMipmapBrian Paul2010-01-061-19/+21
| | | | | | | | Based on a patch submitted by Pierre Willenbrock <[email protected]>
| * meta: set viewport and projection matrix in _mesa_meta_GenerateMipmapBrian Paul2010-01-061-0/+9
| | | | | | | | | | | | This fixes mipmap levels being clipped to the last viewport. Based on a patch submitted by Pierre Willenbrock <[email protected]>
* | mesa: fix blend enable/disable calls in meta.c codeFrancis Galiegue2010-01-031-6/+16
| | | | | | | | | | | | Fixes regression in some DRI drivers since the GL_EXT_draw_buffers2 changes. Signed-off-by: Brian Paul <[email protected]>
* | mesa: implement per-buffer color maskingBrian Paul2009-12-292-14/+40
| | | | | | | | | | | | | | | | | | | | | | This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
* | mesa: per-buffer blend enabled flagsBrian Paul2009-12-291-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ctx->Color.BlendEnabled is now a GLbitfield instead of a GLboolean to indicate blend on/off status for each color/draw buffer. This is infrastructure for GL_EXT_draw_buffers2 and OpenGL 3.x New functions include _mesa_EnableIndexed(), _mesa_DisableIndexed(), and _mesa_IsEnabledIndexed(). The enable function corresponds to glEnableIndexedEXT() for GL_EXT_draw_buffers2 or glEnablei() for GL3. Note that there's quite a few tests for ctx->Color.BlendEnabled != 0 in drivers, etc. Those tests can remain as-is since the mask will be 0 or ~0 unless GL_EXT_draw_buffers2 is enabled.
* | Merge branch 'mesa_7_7_branch'Brian Paul2009-12-211-3/+3
|\| | | | | | | | | | | Conflicts: src/mesa/main/version.h src/mesa/state_tracker/st_atom_shader.c
| * mesa/meta: move BindTexture() call in _mesa_meta_GenerateMipmap()Brian Paul2009-12-141-3/+3
| | | | | | | | | | | | | | | | | | This is a follow-up to commit e3fa700c178e11e6735430119232919176ab7b42. The call to _mesa_BindTexture() must be before we set any other texture object state, namely the _mesa_TexParameteri() calls. This fixes bug 25601 (piglit gen-nonzero-unit failure).
* | mesa: remove unused ctx->Driver.ActiveTexture() hookBrian Paul2009-12-111-1/+0
|/
* meta: Bind texture to unit 0 for mipmap generationIan Romanick2009-12-091-0/+4
| | | | | | | If the active texture unit on entry to mipmap generation is not zero, bind the texture to unit zero. Fixes bug #24219.
* mesa: remove unused vertex array driver hooksBrian Paul2009-11-161-13/+0
|
* mesa: use _mesa_get_current_tex_object()Brian Paul2009-11-021-6/+2
|
* Merge branch 'texformat-rework'Brian Paul2009-10-282-8/+8
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/radeon/radeon_fbo.c src/mesa/drivers/dri/s3v/s3v_tex.c src/mesa/drivers/dri/s3v/s3v_xmesa.c src/mesa/drivers/dri/trident/trident_context.c src/mesa/main/debug.c src/mesa/main/mipmap.c src/mesa/main/texformat.c src/mesa/main/texgetimage.c
| * mesa: remove ctx->Driver.CompressedTextureSize() hookBrian Paul2009-10-241-1/+0
| | | | | | | | It always just called _mesa_compressed_texture_size() anyway.
| * mesa: replace gl_texture_format with gl_formatBrian Paul2009-09-301-1/+1
| | | | | | | | | | | | Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
| * mesa: use _mesa_get_format_base_format()Brian Paul2009-09-271-1/+2
| |
* | mesa: s/Bilt/BlitBrian Paul2009-10-271-1/+1
| |
* | meta: Fix the BufferSubData in meta clear to be BufferData.Eric Anholt2009-10-201-3/+2
| | | | | | | | | | Fixes a 3.4% +/- 1.3% performance regression in my GL demo (n=3). The other meta code could probably also use the same treatment.
* | mesa: remove unused ctx->Driver.PrioritizeTextures() hookBrian Paul2009-10-141-1/+0
| |
* | mesa: remove unused ctx->Driver.TextureMatrix() hookBrian Paul2009-10-141-1/+0
| |
* | mesa: remove left-over debug printfBrian Paul2009-10-141-1/+0
| |
* | mesa: whitespace fixesBrian Paul2009-10-131-2/+2
| |
* | mesa: do RTT check in _mesa_meta_check_generate_mipmap_fallback()Brian Paul2009-10-131-7/+48
| | | | | | | | | | | | | | We need to check that we can actually render to the texture's format before doing mipmap generation. This may fix bug 24219.
* | mesa: save/set/restore texture base/wrap state in blitframebuffer_texture()Brian Paul2009-10-121-4/+15
| |
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-081-34/+4
|\ \ | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/common/meta.c
| * | mesa: don't need to free textures, VBOs, etc. in _mesa_meta_free()Brian Paul2009-10-071-28/+4
| | | | | | | | | | | | | | | They're freed by the normal context deallocation code. Fixes Blender crash, bug 24185.
* | | meta: Make sure texImage->TexFormat is valid for CopyTex(Sub)Image.Michel Dänzer2009-10-031-0/+7
| | |
* | | mesa: optimized _mesa_meta_BlitFramebuffer() for src=texture caseBrian Paul2009-10-021-0/+130
| | | | | | | | | | | | | | | If the src renderbuffer is actually a texture, we can directly use that texture as the src and avoid a copy.
* | | mesa: added _mesa_meta_check_generate_mipmap_fallback()Brian Paul2009-10-022-3/+28
| | |
* | | meta: Fix invalid PBO access from DrawPixels when trying to just alloc.Eric Anholt2009-09-281-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | This whole reuse of buffers (TexSubImage instead of TexImage, SubData instead of Data) is bad for hardware drivers, but it's even worse when we accidentally try to access the 2x2 PBO to fill the new 16x16 texture we're creating, producing GL errors. Fixes piglit pbo-drawpixels. Bug #14163.
* | | intel: Drop my generatemipmap code in favor of the new shared code.Eric Anholt2009-09-281-1/+1
| |/ |/|
* | mesa: _mesa_meta_GenerateMipmap() now workingBrian Paul2009-09-241-33/+172
| | | | | | | | | | Handles GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP. But GL_TEXTURE_3D and texture borders not supported yet.
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-09-221-28/+20
|\|
| * mesa: don't re-use the meta glDrawPixels VBO; create a new one each timeBrian Paul2009-09-221-30/+22
| | | | | | | | This should help to work around bugs 24083 and 23670.
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-09-201-4/+0
|\| | | | | | | | | Conflicts: src/mesa/drivers/dri/intel/intel_clear.c
| * mesa: fix clip plane, fog issuesBrian Paul2009-09-161-4/+0
| |
* | mesa: remove redundant readbuffer checkBrian Paul2009-09-191-5/+0
| |
* | mesa: rename functions to be more consistant with rest of mesaBrian Paul2009-09-192-41/+40
| |
* | mesa: use new meta functionsBrian Paul2009-09-191-4/+4
| |
* | mesa: meta functions for glCopyColorTable, glCopyConvolutionFilter, etcBrian Paul2009-09-192-0/+141
| |