summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_texrender.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-03mesa: Delete libmesa_classicDylan Baker1-102/+0
We no longer have any classic drivers, so we no longer need libmesa_classic Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10153>
2015-05-14main: Rename framebuffer renderbuffer software fallback.Laura Ekstrand1-1/+1
Rename _mesa_framebuffer_renderbuffer to _mesa_FramebufferRenderbuffer_sw in preparation for adding the ARB_direct_state_access backend function for FramebufferRenderbuffer and NamedFramebufferRenderbuffer to share. Reviewed-by: Fredrik Höglund <fredrik@kde.org> Signed-off-by: Fredrik Höglund <fredrik@kde.org>
2015-04-01swrast: remove unneeded #include of colormac.hBrian Paul1-1/+0
Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Mark Janes <mark.a.janes@intel.com>
2015-02-23mesa: Use assert() instead of ASSERT wrapper.Matt Turner1-1/+1
Acked-by: Eric Anholt <eric@anholt.net>
2014-01-27mesa: change gl_format to mesa_formatMark Mueller1-1/+1
s/\bgl_format\b/mesa_format/g. Use better name for Mesa Formats enum
2013-05-17mesa: Make FinishRenderTexture just take the renderbuffer being finished.Eric Anholt1-2/+2
Now that the rb has a reference to the teximage, we didn't need anything else out of the attachment. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-05-17mesa: Track the TexImage being rendered to in the gl_renderbuffer.Eric Anholt1-1/+1
We keep having to pass the attachments around with our gl_renderbuffers because that's the only way to find what the gl_renderbuffer actually refers to. This is a step toward removing that (though drivers still need the Zoffset as well). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-05-06mesa: Make Mesa core set up wrapped texture renderbuffer state.Eric Anholt1-5/+0
Everyone was doing effectively the same thing, except for some funky code reuse in Intel, and swrast mistakenly recomputing _BaseFormat instead of using the texture's _BaseFormat. swrast's sRGB handling is left in place, though it should be done by using _mesa_get_render_format() at render time instead (as-is, it will miss updates to GL_FRAMEBUFFER_SRGB). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-05-06mesa: Make core Mesa allocate the texture renderbuffer wrapper.Eric Anholt1-34/+4
Every driver did the same thing. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-30swrast: Replace ImageOffsets with an ImageSlices pointer.Eric Anholt1-12/+2
This is a step toward allowing drivers to use their normal mapping paths, instead of requiring that all slice mappings come from an aligned offset from the first slice's map. This incidentally fixes missing slice handling in FXT1 swrast. v2: Use slice height helper function. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-11-30mesa: pass context parameter to gl_renderbuffer::Delete()Brian Paul1-1/+1
We sometimes need a rendering context when deleting renderbuffers. Pass it explicitly instead of trying to grab a current context (which might be NULL). The next patch will make use of this. Note: this is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-01-24swrast: use swrast_renderbuffer instead of gl_renderbufferBrian Paul1-2/+3
2012-01-24swrast: allocate swrast_renderbuffers instead of gl_renderbuffersBrian Paul1-1/+1
2012-01-24swrast: rewrite, simplify the the render-to-texture codeBrian Paul1-110/+30
2012-01-24mesa: rename gl_renderbuffer::Data to BufferBrian Paul1-2/+2
To better indicate that this pointer to the malloc'd memory.
2012-01-24mesa: remove gl_renderbuffer::DataTypeBrian Paul1-10/+0
2012-01-24mesa: remove gl_renderbuffer:RowStride fieldBrian Paul1-1/+0
2012-01-24swrast: remove Get/PutRow()-related codeBrian Paul1-257/+0
2011-12-24mesa: remove gl_renderbuffer::PutRowRGB()Brian Paul1-62/+0
No longer used anywhere. Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-24mesa: remove gl_renderbufer::PutMonoRow() and PutMonoValues()Brian Paul1-117/+0
The former was only used for clearing buffers. The later wasn't used anywhere! Remove them and all implementations of those functions. Reviewed-by: Eric Anholt <eric@anholt.net>
2011-11-15swrast: fix glReadPixels from texture attachmentBrian Paul1-0/+13
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42635
2011-11-01Add MapRenderbuffer implementations for software drivers.Eric Anholt1-0/+1
Mesa core's is generic for things like osmesa. For swrast_dri.so, we have to do Y flipping. The front-buffer path isn't actually tested, though, because both before and after it fails with a BadMatch in XGetImage. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-10-23mesa: add swrast_texture_image::BufferBrian Paul1-15/+16
In the past, swrast_texture_image::Data has been overloaded. It could either point to malloc'd memory storing texture data, or it could point to a current mapping of GPU memory. Now, Buffer always points to malloc'd memory (if we're not using GPU memory) and Data always points to mapped memory. The next step would be to rename Data -> Map. This change also involves adding swrast functions for mapping textures and renderbuffers prior to rendering to setup the Data pointer. Plus, corresponding functions to unmap texures and renderbuffers. This is very much like similar code in the dri drivers.
2011-10-23mesa: move gl_texture_image::Data, RowStride, ImageOffsets to swrastBrian Paul1-1/+1
Only swrast and the drivers that fall back to swrast need these fields now. This removes the last of the fields related to software rendering from gl_texture_image.
2011-10-07swrast: s/FetchTexelf/FetchTexel/Brian Paul1-17/+17
2011-09-17mesa: move gl_texture_image::FetchTexel fields to swrastBrian Paul1-13/+14
This also involves passing swrast_texture_image instead of gl_texture_image into all the fetch functions.
2011-09-17mesa: move software texel fetch code into swrastBrian Paul1-1/+5
It's only used by swrast now so move it out of core Mesa.
2011-06-13mesa: move texrender.c to swrastBrian Paul1-0/+654
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 <eric@anholt.net>