summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_framebuffer.c
AgeCommit message (Collapse)Author
2009-03-26gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer
2009-03-07mesa: move glViewport and glDepthRange functions into new viewport.c fileBrian Paul
A bit of refactoring with an eye toward ES2 and GL 3.1
2009-03-07mesa: remove last of _mesa_unreference_framebuffer() callsBrian Paul
2009-03-04gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer
2009-02-12mesa: use new ST_CALLOC_STRUCT() macro in gallium state trackerBrian Paul
2009-01-23gallium: change the st_get_framebuffer_surface/texture functionsAlan Hourihane
to return TRUE/FALSE if the st_framebuffer is valid, and if it is return the surface/texture in the passed pointer.
2008-12-30gallium: Remove unused variables.José Fonseca
2008-12-19gallium: set ST_NEW_FRAMEBUFFER when setting new surfacesAlan Hourihane
2008-12-10Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul
2008-12-10gallium: only mark back color buffer surfaces as undefined after swapbuffersBrian Paul
Marking all surfaces as undefined was wrong and cause some glean failures because glReadPixels was used after SwapBuffers.
2008-11-05Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul
Conflicts: src/gallium/auxiliary/rtasm/rtasm_execmem.c src/mesa/shader/slang/slang_emit.c src/mesa/shader/slang/slang_log.c src/mesa/state_tracker/st_atom_framebuffer.c
2008-11-03gallium: no renderbuffer, so just exit.Alan Hourihane
2008-10-18gallium: add some checks for null surface pointers in state trackerBrian Paul
Fixes some segfaults in low memory situations.
2008-09-26st: add prototype for st_get_framebuffer_dimensions()Alan Hourihane
2008-09-26st: export st_get_framebuffer_dimensions() to retrieveAlan Hourihane
the width & height of the fb
2008-09-26st: change from ** to * for st_unreference_framebuffer()Alan Hourihane
2008-09-17gallium: clean-up/fix msaa override in state trackerBrian Paul
2008-08-28gallium: change the conditional which tests for combined Z+stencil buffersBrian Paul
The caller might be requesting 16-bit Z + 8-bit stencil be placed in a PIPE_FORMAT_S8Z24 or PIPE_FORMAT_Z24S8 buffer.
2008-08-15mesa: Issue PIPE_FLUSH_FRAME in glSwapBuffers/glFlush/glFinish.José Fonseca
2008-07-22add env var to override msaa visual selectionRoland Scheidegger
2008-06-27gallium: handle msaaRoland Scheidegger
2008-06-23gallium: Add accessor functions to get textures from a st_framebufferJakob Bornecrantz
2008-06-18gallium: added new st_set_framebuffer_surface()Brian Paul
This allows the winsys to explicitly specify gallium surfaces for a framebuffer object.
2008-06-09gallium: include scissor.hBrian Paul
2008-04-09gallium: more elaborate tracking of front color buffer stateBrian Paul
This fixes the case where the app calls SwapBuffers then calls glReadPixels to read the front color buffer. We now keep track of when the front buffer is a _logically_ copy of the back buffer (after SwapBuffers) and read from the back color buffer instead of the front.
2008-04-07gallium: accum buffer fixesBrian Paul
If the driver can't create a PIPE_FORMAT_R16G16B16A16_SNORM surface, create an accum surface using a shallower format and taller height. Since only the accum buffer code accesses the surface the actual format doesn't really matter, just that there's enough memory.
2008-03-26gallium: Change pipe->flush() interface to optionally return a fence.Michel Dänzer
The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run proper fencing should be implemented for it.
2008-02-26gallium: #includes to silence warningsBrian
2008-02-26gallium: fix zero-sized viewport bugBrian
If st_create_framebuffer() is called with width=0, height=0 and the program never called glViewport, the viewport wasn't properly initalized. This fixes that.
2008-01-26gallium: add notify_swapbuffers_complete, use it to set surfaces to ↵Keith Whitwell
undefined state
2008-01-26gallium: specialize glFlush vs other flush semanticsKeith Whitwell
2007-12-20gallium: make state tracker explictly ask for rendercache flushesKeith Whitwell
2007-12-19Fix problem with initial viewport/scissor size.Brian
If an app never called glViewport, the viewport size was always 0 by 0 pixels. Now pass initial size to st_create_framebuffer() and initialize the viewport and scissor bounds in st_make_current(). This could also be fixed by ensuring the gl_framebuffers passed to _mesa_make_current() were initialized to the right size. But that involves allocating the renderbuffers/pipe_surfaces earlier and that runs into some other issues ATM. Also remove obsolete createRenderbuffers param to st_create_framebuffer().
2007-12-12Re-org of st_create_framebuffer() and renderbuffer format selection.Brian
st_create_framebuffer() now takes pipe_formats for the color, depth, stencil buffers. This avoids a round-about chain of calls to pipe->is_format_supported() for window renderbuffers (their format never changes). Renderbuffer format selection code in st_format.c is simpler now too.
2007-12-10Add 'type' parameter to is_format_supported() to specify texture vs. drawing ↵Brian
surface, etc. Additional types may be added in the future.
2007-12-07added ST_SURFACE_DEPTHBrian
2007-11-07New PIPE_FLUSH_WAIT flag for pipe->flush().Brian
The state tracker doesn't have to directly call winsys->wait_idle() anymore. glFlush and glFinish both go through pipe->flush() now.
2007-11-06Improved logic for setting up depth/stencil buffers in st_create_framebuffer()Brian
2007-11-06Handle the corner case of 24bit depth buffer with 0bit stencil buffer.José Fonseca
2007-11-05don't include mtypes.h in st_public.hBrian
2007-11-05Update xlib driver to use newer state tracker context/framebuffer functions.Brian
XMesaContext has an st_context * which contains a mesa context.
2007-11-05added st_notify_swapbuffers()Brian
2007-11-05added st_get_framebuffer_surface() and ST_SURFACE_x tokensBrian
2007-11-05added st_unreference_framebuffer()Brian
2007-11-05set stfb->Base.InitializedBrian
2007-11-05added st_resize_framebuffer()Brian
2007-11-05st_create_framebuffer() workingBrian
2007-11-05new file for st_framebuffer stuffBrian