summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_surface.c
AgeCommit message (Collapse)Author
2007-12-15Use tile functions in new p_tile.[ch]Brian
This removes quite a bit of code duplicated in the drivers.
2007-12-12Move float/rgba tile get/put functions into new file.Brian
This should be moved into a gallium util lib (location tbd) so it can also be used by the state tracker. Then, remove the pipe->get/put_tile_rgba() functions.
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-11softpipe: Support for PIPE_FORMAT_A4R4G4B4_UNORM and PIPE_FORMAT_R5G6B5_UNORM.Michel Dänzer
The packedpixels test runs with the xlib winsys, though not all cases look correct yet.
2007-12-11Add surface storage allocation function to winsys interface.José Fonseca
2007-12-07clean-upsBrian
2007-12-07Get rid of "duplicate" formats.Brian
For example, replace PIPE_FORMAT_U_A8_R8_G8_B8 with PIPE_FORMAT_A8R8G8B8_UNORM
2007-12-07Move struct softpipe_texture definition into sp_texture.hBrian
Also, added softpipe_texture() cast wrapper.
2007-12-07Eliminate struct pipe_region.Michel Dänzer
Directly use struct pipe_buffer_handle for storage and struct pipe_surface for (un)mapping.
2007-12-06Hide texture layout details from the state tracker.Michel Dänzer
pipe->get_tex_surface() has to be used for access to texture image data.
2007-12-05added tile funcs for B8G8R8A8 formatBrian
2007-11-29Move dimensions from struct pipe_region to struct pipe_surface.Michel Dänzer
2007-11-20add PIPE_FORMAT_Z24_S8 support to softpipe patshBrian
2007-11-01implement get/put_tile() for xlib driverBrian
2007-10-29minor code simplificationBrian
2007-10-29fix memcpy bugsBrian
2007-10-29Make it compile under linux.Michal Krol
Move pipe_region/surface_reference functions to pipe/p_inlines.h. Remove #include "p_util.h" from pipe/p_context.h.
2007-10-29Make gallium compile in win32.Michal Krol
Use FREE, MALLOC, CALLOC, GETENV wrappers. Silence compiler warnings. Add proper copyrights.
2007-10-27Remove remnants of softpipe_surface.Brian
This is the last of the clean-up following the change which moved surface allocation to the winsys layer.
2007-10-26surface_alloc() is now a winsys function.Brian
This allows surfaces to be allocated without a rendering context. A few loose ends to resolve, but in working condition.
2007-10-25clean-up, simplify some tile code, more to comeBrian
2007-10-25Move the get/put_tile() functions to pipe_context.Brian
The _rgba versions are temporary until the state tracker is updated.
2007-10-24get_tile() for z16, z32, s8z24 surfaces needs to return 4 floats per pixel ↵Brian
(for depth texture sampling)
2007-10-20Remove obsolete read/write_quad() functionsBrian
2007-10-20Convert Z/stencil ops to use cached tiles like colors.Brian
Also, quite a bit of re-org of the tile caches and surface mapping/unmapping. Leave surfaces mapped between primitives now.
2007-10-19get/put_tile_raw() funcs for 16/32bpp surfacesBrian
2007-10-19Initial implementation of surface tile caching.Brian
Instead of using read/write_quad() functions, do framebuffer accesses via get/put_tile(). A cache of tiles is used to avoid frequent get/put() calls. Only implemented for color buffers right now.
2007-10-18Corrected the file permissions in src/mesa/pipe.Oliver McFadden
2007-10-16lower clamp bound for UNCLAMPED_FLOAT_TO_SHORT() is -1Brian
2007-10-1416-bit RGBA surface format for accum buffersBrian
2007-10-13added z16/z32_git_tile(), change s8z24_get_tile() to return Z as float, ↵Brian
ignore stencil
2007-10-10disable some assertions which pop up during window resize, but can be ↵Brian
ignored for now
2007-10-10use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount errorBrian
2007-10-03added s8z24_get_tile()Brian
2007-09-26added a8r8g8b8_put_tile()Brian
2007-08-24Add support for more surface types in sp_surface.cBrian
replace PIPE_FORMAT_U_L8_A8 with PIPE_FORMAT_U_A8_L8
2007-08-16Silence warnings.michal
2007-08-14Continue reducing dependencies on core mesa include files.Keith Whitwell
Mainly down to the support for legacy TNL processing now.
2007-08-11do clipping in get_tile()Brian
2007-08-10add missing break stmtBrian
2007-08-10include surface.offset in address calculationsBrian
2007-08-10flesh out w/ more formats, y=0=top conventionBrian
2007-08-09export softpipe_init_surface_funcs()Brian
2007-08-08use surface offset value in get_tile()Brian
2007-08-08added assertionBrian
2007-08-08more get_tile() workBrian
2007-08-07added a get_tile() funcBrian
2007-08-07sketch out new pipe surface/sampler typesBrian
2007-08-01s/Z24_S8/S8_Z24/ (stencil is in the high byte)Brian
2007-07-31Redesign pipe_surface in terms of pipe_region.Brian
struct pipe_buffer goes away. Added basic region functions to softpipe to allocate/release malloc'd regions. Surface-related code is fairly coherent now.