Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: move texrender.c to swrast | Brian Paul | 2011-06-13 | 1 | -654/+0 |
| | | | | | | | This stuff is really for software rendering, it's not core Mesa. A small step toward pushing the FetchTexel() stuff down into swrast. Reviewed-by: Eric Anholt <[email protected]> | ||||
* | Revert "mesa: set reasonable defaults in update_wrapper" | Marek Olšák | 2011-05-17 | 1 | -5/+2 |
| | | | | | | | This reverts commit 1d5f16ff8fae936f2e920800b169cf7736a8052a. It breaks fbo-readpixels on swrast. For some reason, swrast likes GL_RGBA and CHAN_TYPE. | ||||
* | mesa: set reasonable defaults in update_wrapper | Marek Olšák | 2011-04-29 | 1 | -2/+5 |
| | | | | | | | | | I was wondering why I had been getting GL_RGBA for GL_RGB9_E5. Instead of setting GL_RGBA and CHAN_TYPE for most types, use the helper functions to obtain the info. Reviewed-by: Brian Paul <[email protected]> | ||||
* | mesa: added _mesa_get_attachment_teximage() helpers | Brian Paul | 2011-04-05 | 1 | -2/+3 |
| | |||||
* | mesa: Add missing break statement in SARGB8 case. | Vinson Lee | 2011-01-13 | 1 | -0/+1 |
| | |||||
* | mesa/srgb: handle SARGB8 case in the sw fbo renderer. | Dave Airlie | 2011-01-13 | 1 | -0/+4 |
| | |||||
* | mesa: include teximage.h to silence warning | Brian Paul | 2011-01-11 | 1 | -0/+1 |
| | |||||
* | mesa/swrast: handle sRGB FBOs correctly (v2) | Dave Airlie | 2011-01-11 | 1 | -12/+24 |
| | | | | | | | | | | | | | | | | From reading EXT_texture_sRGB and EXT_framebuffer_sRGB and interactions with FBO I've found that swrast is converting the sRGB values to linear for blending when an sRGB texture is bound as an FBO. According to the spec and further explained in the framebuffer_sRGB spec this behaviour is not required unless the GL_FRAMEBUFFER_SRGB is enabled and the Visual/config exposes GL_FRAMEBUFFER_SRGB_CAPABLE_EXT. This patch fixes swrast to use a separate Fetch call for FBOs bound to SRGB and avoid the conversions. v2: export _mesa_get_texture_dimensions as per Brian's comments. Signed-off-by: Dave Airlie <[email protected]> | ||||
* | Drop GLcontext typedef and use struct gl_context instead | Kristian Høgsberg | 2010-10-13 | 1 | -11/+11 |
| | |||||
* | mesa: Include macros.h in files that use symbols from macros.h. | Vinson Lee | 2010-07-30 | 1 | -0/+1 |
| | | | | Don't rely on inclusion of other files that already include macros.h. | ||||
* | mesa: add additional missing z formats for render to texture | Brian Paul | 2010-03-08 | 1 | -15/+83 |
| | | | | | Allow render to texture for X8_Z24 and Z24_X8 formats. Replace big if/else with switch, etc. | ||||
* | mesa: add render-to-texture case for MESA_FORMAT_S8_Z24 | Brian Paul | 2010-03-08 | 1 | -0/+5 |
| | |||||
* | mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer | Brian Paul | 2010-03-08 | 1 | -1/+1 |
| | | | | MESA_FORMAT_Z16 has no stencil bits. | ||||
* | mesa: Remove unnecessary header. | Vinson Lee | 2010-02-26 | 1 | -1/+0 |
| | |||||
* | mesa: use simplified _BaseFormat value in render-to-texture code | Brian Paul | 2010-02-25 | 1 | -1/+4 |
| | | | | Fixes fd.o bug 26762. | ||||
* | Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions | Kristian Høgsberg | 2010-02-19 | 1 | -1/+1 |
| | |||||
* | mesa: remove unnecessary store. | Eric Anholt | 2009-12-22 | 1 | -3/+0 |
| | |||||
* | mesa: remove a bunch of gl_renderbuffer fields | Brian Paul | 2009-10-08 | 1 | -12/+5 |
| | | | | | | _ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries. | ||||
* | mesa: use FetchTexelf() instead of FetchTexelc() | Brian Paul | 2009-10-05 | 1 | -3/+8 |
| | |||||
* | mesa: move texel fetch/store into new texfetch.[ch] files | Brian Paul | 2009-09-30 | 1 | -1/+1 |
| | |||||
* | mesa: replace gl_texture_format with gl_format | Brian Paul | 2009-09-30 | 1 | -5/+5 |
| | | | | | | 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: fix render buffer _BaseFormat assignment | Brian Paul | 2009-09-27 | 1 | -7/+1 |
| | |||||
* | mesa: use more mesa format functions | Brian Paul | 2009-09-27 | 1 | -6/+9 |
| | |||||
* | mesa: use _mesa_get_texel_store_func() | Brian Paul | 2009-09-27 | 1 | -1/+1 |
| | |||||
* | mesa: replace assertion with no-op function assignment | Brian Paul | 2009-09-24 | 1 | -1/+12 |
| | |||||
* | mesa: assign trb->Base.StencilBits in update_wrapper(). | Brian Paul | 2009-05-19 | 1 | -0/+1 |
| | | | | When we render to a depth/stencil texture there are stencil bits. | ||||
* | mesa: add missing texture_put_row_rgb() function in texrender.c | Robert Ellison | 2009-01-26 | 1 | -0/+54 |
| | | | | | | The wrap_texture() function doesn't set the renderbuffer PutRowRGB() method, which is used to implement DrawPixels(). This fix adds an implementation of this method. | ||||
* | mesa: add GLushort cases for render to texture (Z-buffers) | Brian Paul | 2009-01-05 | 1 | -2/+50 |
| | |||||
* | mesa: Silence compiler warnings on Windows. | Michal Krol | 2008-09-21 | 1 | -4/+4 |
| | |||||
* | Initial implementation of MESA_texture_array | Ian Romanick | 2007-05-16 | 1 | -13/+32 |
| | | | | | Shadow sampling from texture arrays is still not implemented. Everything else should be there, though. | ||||
* | use _mesa_reference_renderbuffer() in a few more places | Brian | 2007-04-02 | 1 | -1/+1 |
| | |||||
* | Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format. | Brian Paul | 2006-04-06 | 1 | -3/+74 |
| | | | | | | | This allows render to depth texture (we don't support floating pt. Z buffers). Rename MESA_FORMAT_DEPTH_COMPONENT16/32 as MESA_FORMAT_Z16/32. Software fallback for glCopyTexImage now uses integer temporary image instead of float, eliminates a lot of float/int conversions. | ||||
* | New code for rendering to depth/stencil textures. | Brian Paul | 2006-03-29 | 1 | -68/+178 |
| | | | | Re-org of the renderbuffer wrapper code. | ||||
* | merge from texman branchmesa_20060325 | Brian Paul | 2006-03-26 | 1 | -5/+15 |
| | |||||
* | Lots of changes/fixes for rendering to framebuffer objects. | Brian Paul | 2006-03-20 | 1 | -15/+34 |
| | | | | | | | - When deleting texture objects, unbind from FBOs if necessary. - Changed driver hooks for starting/ending render to texture. - Now properly handle case where gl[Copy]TexImage() is called after glFramebufferTexture[123]D(). That didn't work before. | ||||
* | Added FinishRenderTexture() device driver function to indicate when | Brian Paul | 2005-12-01 | 1 | -2/+4 |
| | | | | | rendering to a texture has likely completed. Fixed refcount issue in texture renderbuffer wrapper. | ||||
* | In gl_texture_image replace IntFormat with InternalFormat and Format with | Brian Paul | 2005-10-05 | 1 | -1/+1 |
| | | | | _BaseFormat to be consistant with gl_renderbuffer. | ||||
* | finish up some missing code | Brian Paul | 2005-10-03 | 1 | -2/+24 |
| | |||||
* | fix GL_ALPHA render-to-texture problem (Jon Smirl) | Brian Paul | 2005-06-07 | 1 | -0/+3 |
| | |||||
* | Major check-in of changes for GL_EXT_framebuffer_object extension. | Brian Paul | 2005-05-04 | 1 | -0/+197 |
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested. |