summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Simplify _mesa_base_fbo_format by making it exceptions to teximages.Eric Anholt2011-01-141-43/+24
| | | | | | The comment of "this is just like teximages except for..." is a pretty good clue that we're handling this wrong. By just using the teximage code, we catch a bunch of cases we'd missed, like GL_RED and GL_RG.
* srgb: fix fbo base format picking.Dave Airlie2011-01-141-1/+1
| | | | Pointed out by Brian.
* mesa/fbo: prevent assert trigger on i965 with piglit fbo-srgb test.Dave Airlie2011-01-131-0/+2
|
* mesa: check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT()Brian Paul2011-01-121-0/+7
| | | | | | | | Fixes a failed assertion when a renderbuffer ID that was gen'd but not previously bound was passed to glFramebufferRenderbuffer(). Generate the same error that NVIDIA does. NOTE: This is a candidate for the 7.9 and 7.10 branches.
* mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-071-0/+1
|
* mesa: Include mtypes.h in files that use gl_context struct.Vinson Lee2011-01-051-0/+1
| | | | | | Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file.
* mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.Eric Anholt2011-01-031-1/+2
| | | | Noticed by code inspection.
* mesa: Also report renderbuffer red/green size for GL_RED and GL_RG.Eric Anholt2011-01-031-0/+9
| | | | Noticed by code inspection.
* mesa: Use the common logic for "is this baseformat a color format?"Eric Anholt2011-01-031-7/+7
| | | | | | When figuring out whether a renderbuffer should be used to set the visual bits of an FBO, we were missing important baseformats like GL_RED, GL_RG, and GL_LUMINANCE.
* mesa: Allow color renderbuffers besides just RGB and RGBA.Eric Anholt2011-01-031-2/+1
| | | | | | We did so already for textures to do ARB_fbo's GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and GL_RG, but this path was missed.
* mesa: test for cube map completeness in glGenerateMipmap()Brian Paul2010-12-061-0/+8
| | | | | | | The texture is not cube complete if the base level images aren't of the same size and format. NOTE: This is a candidate for the 7.9 branch.
* mesa: return GL_FRAMEBUFFER_DEFAULT as FBO attachment typeBrian Paul2010-12-031-1/+1
| | | | | | | | | If querying the default/window-system FBO's attachment type, return GL_FRAMEBUFFER_DEFAULT (per the GL_ARB_framebuffer_object spec). See http://bugs.freedesktop.org/show_bug.cgi?id=31947 NOTE: This is a candidate for the 7.9 branch.
* mesa: fix GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME queryBrian Paul2010-12-031-2/+2
| | | | | | | | | | | | Return 0 instead of generating an error. See http://bugs.freedesktop.org/show_bug.cgi?id=30993 Note that piglit fbo-getframebufferattachmentparameter-01 still does not pass. But Mesa behaves the same as the NVIDIA driver in this case. Perhaps the test is incorrect. NOTE: This is a candidate for the 7.9 branch.
* mesa: rename function to _mesa_is_format_integer_color()Brian Paul2010-10-261-1/+1
| | | | Be a bit more clear about its operation.
* mesa: allow FBO attachments of formats LUMINANCE, LUMINANCE_ALPHA, and INTENSITYMarek Olšák2010-10-241-0/+3
| | | | | | As per the GL_ARB_framebuffer_object specification. Signed-off-by: Marek Olšák <[email protected]>
* mesa: compute _IntegerColor field in _mesa_test_framebuffer_completeness()Brian Paul2010-10-231-0/+6
|
* mesa: simplify fbo format checking codeBrian Paul2010-10-231-13/+38
|
* mesa: 80-column wrappingBrian Paul2010-10-231-3/+6
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-16/+16
|
* ARB_texture_rg: Allow RED and RG textures as FBO color buffer attachmentsIan Romanick2010-10-011-2/+8
|
* mesa: Don't reuse DummyFramebuffer as the incomplete framebufferKristian Høgsberg2010-09-091-1/+7
| | | | | | Binding framebuffer 0 on a context that doesn't have a winsys drawable will try to bind the incomplete framebuffer. That fails when that's also the dummy framebuffer.
* mesa: Set the base format of GL_ALPHA FBOs and teach swrast about it.Eric Anholt2010-09-071-0/+6
| | | | | Fixes assertion failures in fbo-alpha with a debug build of Mesa. Bug #29781.
* mesa: Fix printf-like warnings.Vinson Lee2010-09-021-1/+1
|
* mesa: initialize dummy framebuffer and renderbuffer mutexesVladimir Vukicevic2010-09-011-0/+2
| | | | | | See fd.o bug 29909. Signed-off-by: Brian Paul <[email protected]>
* intel: Implement EGL_KHR_surfaceless extensionKristian Høgsberg2010-07-281-0/+5
|
* mesa: initial support for ARB_geometry_shader4Zack Rusin2010-06-281-0/+22
| | | | | | laying down the foundation for everything and implementing most of the stuff. linking, gl_VerticesIn and multidimensional inputs are left.
* mesa: fix attachment error checking for glGetFramebufferAttachmentParameteriv()Brian Paul2010-06-221-1/+44
| | | | | | | This is a follow-on to commit 80dfec3e53fd5b5c8c31fb16376c9910258c91b0. The valid attachments for glGetFramebufferAttachmentParameteriv() depends on whether we're querying the default FBO or a user-created FBO.
* mesa: Allow querying the system FBO in GetFramebufferAttachmentParameterivKristian Høgsberg2010-06-151-6/+8
| | | | | | | | | | | | | | | | | | | | | | If the default framebuffer is bound to <target>, then <attachment> must be one of FRONT_LEFT, FRONT_RIGHT, BACK_LEFT, BACK_RIGHT, AUXi, DEPTH_BUFFER, or STENCIL_BUFFER, identifying a color buffer, the depth buffer, or the stencil buffer, and <pname> may be FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE or FRAMEBUFFER_ATTACHMENT_OBJECT_NAME. as well as these <pname> values FRAMEBUFFER_ATTACHMENT_RED_SIZE, FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, or FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING. https://bugs.freedesktop.org/show_bug.cgi?id=28551
* mesa: Allow GL_ALPHA FBOs with ARB_framebuffer_object.Eric Anholt2010-06-101-2/+5
| | | | Drivers still reject them today, but cairo would like to use these.
* mesa: whitespace and 80 column wrappingBrian Paul2010-06-021-3/+12
|
* mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format checkBrian Paul2010-05-271-3/+3
| | | | | | | | | We want to check the incoming renderbuffer format, not the (potentially non-existant) current attachment. Fixes segfault w/ fbotexture -ds2. NOTE: this will be applied to the 7.8 branch too.
* mesa: Reenable check for GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXTKristian Høgsberg2010-05-241-21/+23
| | | | | | | | The check was disabled when FEATURE_OES_framebuffer_object was enabled, since that used to mean we weren't implementing regular OpenGL semantics. Now that we can compile in support for multiple APIs, change the #ifdef to compile the check in when FEATURE_GL is enabled and enable the check for contexts that implement OpenGL at runtime.
* mesa: use GL_RGBA16_SNORM for accum bufferBrian Paul2010-05-091-0/+1
|
* mesa: Move GL_RGB565 workaround into fbobject.cKristian Høgsberg2010-04-271-0/+15
|
* mesa: Add OES_EGL_image to extension list.Chia-I Wu2010-04-061-0/+6
|
* mesa: Add missing features.Chia-I Wu2010-03-301-1/+1
| | | | | | | Add features tested in the code but missing from mfeatures.h. This also fixes some tests of features. They should be tested with "#if", not "#ifdef".
* mesa: added GL3 buffer attachment aliasesBrian Paul2010-03-201-0/+4
|
* mesa: raise an error when trying to bind non-existant texture to FBOBrian Paul2010-03-101-0/+8
| | | | | | | | If the user calls glRenderBufferTexture(texture=N) but texture N doesn't name an existing texture, raise GL_INVALID_ENUM. Plus, add a comment about some questionable error checking code in framebuffer_texture(). Ian?
* mesa: remove redundant call to _mesa_base_fbo_format()Brian Paul2010-02-251-1/+1
|
* mesa: put declaration before codeBrian Paul2010-02-241-1/+1
|
* core: Implement GL_OES_EGL_image entry pointsKristian Høgsberg2010-02-241-0/+24
|
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-25/+25
|
* mesa: fix int/uint comparison warningsBrian Paul2010-01-271-1/+1
| | | | Reported by Karl Schultz.
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-261-8/+19
|\ | | | | | | Merging was easier than cherry picking in this instance.
| * mesa: Don't bind DRAW/READ_FRAMEBUFFER separately without FBO blit supportErik Wien2010-01-261-8/+19
| | | | | | | | | | | | | | | | | | | | | | If GL_EXT_framebuffer_blit was not supported _mesa_DeleteFramebuffersEXT would raise an error when deleting the currently bound framebuffer. This because it tried to bind the default DRAW- and READ_FRAMEBUFFER separately. This patch binds the default FRAMEBUFFER instead in that case. Encountered in the fbo/fbo-copyteximage piglit test on R600. Patch cleaned up a bit by Brian Paul.
* | Merge branch 'mesa_7_7_branch'Brian Paul2010-01-221-3/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c src/gallium/auxiliary/pipebuffer/Makefile src/gallium/auxiliary/pipebuffer/SConscript src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/tgsi/tgsi_scan.c src/gallium/drivers/i915/i915_surface.c src/gallium/drivers/i915/i915_texture.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/softpipe/sp_prim_vbuf.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/winsys/drm/intel/gem/intel_drm_api.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_drm.c src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c src/mesa/state_tracker/st_cb_clear.c
| * mesa: Remove unnecessary headers from fbobject.c.Vinson Lee2010-01-181-3/+0
| |
* | mesa: added comment about future FBO formatsBrian Paul2010-01-191-0/+3
|/
* mesa: check BaseLevel, MaxLevel in _mesa_GenerateMipmapEXT()Brian Paul2009-11-161-0/+5
|
* mesa: use _mesa_get_current_tex_object()Brian Paul2009-11-161-3/+1
|