aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_readpixels.c
Commit message (Collapse)AuthorAgeFilesLines
* util: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.José Fonseca2008-07-131-5/+5
| | | | | You don't need a pipe_context * for this, and all other necessary info is already inside pipe_surface.
* gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca2008-06-271-3/+3
| | | | | The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
* mesa: Use appropriate unsigned/signed, float/integer types.José Fonseca2008-06-241-4/+5
|
* Merge branch 'gallium-0.1' into gallium-tex-surfacesBrian Paul2008-05-181-1/+1
|\
| * s/PIPE_FORMAT_U_S8/PIPE_FORMAT_S8_UNORM/Brian Paul2008-05-171-1/+1
| |
* | gallium: fix some render to texture bugsBrian Paul2008-05-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, we were sometimes rendering into a stale texture because st_finalize_texture() would discard the old texture and create a new one. Moved st_update_framebuffer atom after texture validation so that we can create a new renderbuffer surface if the texture changes. Also, split texture validation into two parts: finalize_textures and update_textures. Do finalize_textures first to avoid getting into the situtation where we're doing a pipe->surface_copy() mid-way through state validation. Some debug code still in place, but disabled...
* | gallium: create drawing surfaces as GPU_READ/WRITE onlyBrian Paul2008-05-061-11/+23
| | | | | | | | | | Create different temporary surfaces for CPU_READ/WRITE when needed (such as for glReadPixels, glAccum, some glCopy/DrawPixels, glCopyTexSubImage, etc).
* | gallium: tex surface checkpointKeith Whitwell2008-05-011-2/+3
|/
* gallium: check for PIPE_FORMAT_X8Z24_UNORM formatBrian Paul2008-04-281-1/+2
|
* gallium: fix readback of z16 valuesBrian Paul2008-04-101-1/+1
|
* gallium: more elaborate tracking of front color buffer stateBrian Paul2008-04-091-2/+31
| | | | | | | 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.
* gallium: include st_cb_bitmap.h to silence warningBrian Paul2008-04-031-0/+1
|
* gallium: call st_flush_bitmap_cache()Brian Paul2008-04-031-0/+2
|
* gallium: Change pipe->flush() interface to optionally return a fence.Michel Dänzer2008-03-261-1/+1
| | | | | The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run proper fencing should be implemented for it.
* Refactor PBO validate/map code.Brian2008-03-211-3/+1
| | | | | | We always need to do PBO validation, so do that in core Mesa before calling driv er routine. cherry-picked from Mesa/master.
* gallium: implement PBO operations for glDraw/ReadPixels and glBitmapBrian Paul2008-03-211-10/+9
| | | | | | At this time there are no optimizations for directly blitting between buffer objects and surfaces (always go through mappings). glean pbo test passes now
* Code reorganization: update build.José Fonseca2008-02-151-1/+1
| | | | | | | | | Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
* gallium: fix/finish glReadPixels(GL_DEPTH_COMPONENT).Brian2008-02-121-21/+78
| | | | This fixes demos/reflect ('d' key) and tests/zreaddraw.c
* Remove pipe->get/put_tile_rgba.Michel Dänzer2008-01-141-1/+2
| | | | | | | pipe_get/put_tile_rgba() now use pipe->get/put_tile internally. Also simplify the <format>_get/put_tile_rgba() helper functions and clean up some inconsitencies in them.
* Remove mapping fields from struct pipe_surface.Michel Dänzer2008-01-141-4/+0
| | | | It's now the responsibility of surface users to keep track of their mappings.
* gallium: make state tracker explictly ask for rendercache flushesKeith Whitwell2007-12-201-1/+1
|
* Replace "duplicate" formatsBrian2007-12-071-2/+2
|
* Eliminate struct pipe_region.Michel Dänzer2007-12-071-7/+6
| | | | | Directly use struct pipe_buffer_handle for storage and struct pipe_surface for (un)mapping.
* Move dimensions from struct pipe_region to struct pipe_surface.Michel Dänzer2007-11-291-3/+3
|
* initial support for PIPE_FORMAT_Z24_S8Brian2007-11-201-0/+9
|
* Move the get/put_tile() functions to pipe_context.Brian2007-10-251-1/+1
| | | | The _rgba versions are temporary until the state tracker is updated.
* fix function nameBrian2007-10-181-1/+1
|
* make read_stencil_pixels() non-staticBrian2007-10-181-5/+5
|
* fix addressing error in read_stencil_pixels()Brian2007-10-171-2/+2
|
* GL_STENCIL_INDEX supportBrian2007-10-131-1/+77
|
* get_tile() of Z surfaces returns floats nowBrian2007-10-131-13/+1
|
* basic support for reading GL_DEPTH_COMPONENTBrian2007-10-031-3/+34
|
* Added st_fb_orientation() function to determine the up/down orientation of ↵Brian2007-08-131-4/+12
| | | | the framebuffer.
* flush pipe before reading imageBrian2007-08-131-1/+9
|
* readpixels handles any format/type/packing/transfer ops nowBrian2007-08-101-10/+56
|
* glReadPixelsBrian2007-08-101-0/+75