summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
Commit message (Collapse)AuthorAgeFilesLines
* softpipe: Use p_atomic_read, not atomic_read.Michal Krol2009-03-161-1/+1
|
* gallium: Use struct pipe_atomic for pipe refcounts.Thomas Hellstrom2009-03-161-1/+1
| | | | Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* gallium: no need to keep a copy of shader tokens in state trackerKeith Whitwell2009-03-133-9/+21
| | | | | | | | Any driver who needs a copy of the shader tokens must organize to do so itself. This has been the case for a long time, but there was still defensive code in the state tracker, which is now removed. Any bugs resulting from this need to be fixed in the offending driver...
* gallium: Remove do_flip argument from surface_copyJakob Bornecrantz2009-03-131-1/+12
| | | | | | | I should have gotten most uses and implementation correctly fixed, but things might break. Feel free to blame me.
* Revert "softpipe: added null ptr check for align_free() call in vbuf code"Brian Paul2009-03-051-2/+1
| | | | | | This reverts commit 6db24f449de9cc81e1f7bb2dde55a9819463d5e5. With a null ptr check in align_free() this is no longer needed.
* softpipe: added null ptr check for align_free() call in vbuf codeBrian Paul2009-03-051-1/+2
| | | | Fixes GALLIUM_NOCELL path. See bug 20475.
* gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer2009-03-048-8/+0
|
* gallium: Unify reference counting.Michel Dänzer2009-03-044-60/+37
| | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
* softpipe: add dumping of post-tranfsormed vertices (disabled)Keith Whitwell2009-02-271-0/+33
|
* softpipe: minor code simplification for face/zslice offset calculationBrian Paul2009-02-241-7/+10
|
* softpipe: minor code movement in softpipe_get_tex_transfer()Brian Paul2009-02-241-4/+5
|
* gallium: Improve makefiles for librariesJakob Bornecrantz2009-02-201-3/+0
| | | | | | | | The template makefile that most libraries in gallium included was based on dri and had a bunch unrelevant junk in it. Update it and improve the depending makefiles.
* Merge branch 'gallium-texture-transfer'Michel Dänzer2009-02-188-106/+209
|\ | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
| * Merge branch 'master' into gallium-texture-transferKeith Whitwell2009-02-1625-201/+210
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_cb_accum.c src/mesa/state_tracker/st_cb_drawpixels.c
| * | gallium: Fix a couple of potential NULL pointer dereferences.Michel Dänzer2009-02-121-22/+33
| | | | | | | | | | | | A lot more test programs work.
| * | softpipe: Unbreak keeping track of cached surface.Michel Dänzer2009-02-121-4/+3
| | | | | | | | | | | | glxgears works.
| * | Cosmetic: Rename struct pipe_transfer pointers from 'ps' to 'pt'.Michel Dänzer2009-02-121-14/+14
| | | | | | | | | | | | Missed these for the initial gallium-texture-transfer commit.
| * | gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer2009-02-058-105/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, a new pipe_transfer object has to be created and mapped for transferring data between the CPU and a texture. This gives the driver more flexibility for textures in address spaces that aren't CPU accessible. This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows a black window. Looks like something's off related to the Z buffer, so the depth test always fails.
* | | Merge commit 'origin/draw-vbuf-interface'Keith Whitwell2009-02-181-13/+32
|\ \ \
| * | | softpipe: update to new draw interfacesKeith Whitwell2009-02-171-13/+32
| | |/ | |/|
* / | softpipe: some improvements to texture tile cacheBrian Paul2009-02-161-4/+12
|/ / | | | | | | | | | | | | | | | | Use a somewhat better function in tex_cache_pos() to get better caching. Increase number of cache entries to 50. Also fix a texture invalidation bug. If texture is marked as modified, invalidate all texture tiles.
* | softpipe: asst clean-ups, const correctness, commentsBrian Paul2009-02-111-14/+16
| |
* | softpipe: remove unneeded #includeBrian Paul2009-02-111-1/+0
| |
* | softpipe: asst comments, clean-upsBrian Paul2009-02-111-12/+10
| |
* | softpipe: remove some old polygon stipple stuff and do some clean-upsBrian Paul2009-02-112-21/+8
| |
* | softpipe: updated commentsBrian2009-02-111-7/+19
| |
* | softpipe: rename PRIM_x to QUAD_PRIM_xBrian2009-02-114-11/+12
| |
* | softpipe: rename sp_headers.h to sp_quad.hBrian2009-02-1117-20/+19
| | | | | | | | This header describes the quad-related datatypes afterall.
* | softpipe: rename single-include preprocessor symbol, add commentsBrian2009-02-111-3/+8
| |
* | softpipe: rename sp_quad.[ch] -> sp_quad_pipe.[ch]Brian2009-02-1118-16/+16
| | | | | | | | Be more consistant with 'draw' module.
* | softpipe: add null ptr check in softpipe_map_constant_buffers()Brian Paul2009-02-091-2/+8
| | | | | | | | Fixes segfault regression in progs/glsl/identity.c
* | softpipe: simplify an assertionBrian Paul2009-02-071-1/+1
|/
* gallium: remove pipe_buffer from surfacesZack Rusin2009-02-022-9/+14
| | | | | | | this change disassociates, at least from the driver perspective, the surface from buffer. surfaces are technically now views on the textures so make it so by hiding the buffer in the internals of textures.
* gallium: initialize simple screen in driversZack Rusin2009-01-311-0/+2
|
* gallium: make p_winsys internalZack Rusin2009-01-304-15/+15
| | | | | move it to pipe/internal/p_winsys_screen.h and start converting the state trackers to the screen usage
* gallium: give the screen priority when it comes to buffer allocationsZack Rusin2009-01-294-15/+15
| | | | | | allows the driver to overwrite buffer allocation, first step on the way to making winsys interface internal to the drivers. state trackers and the code above it will go through the screen
* gallium: remove redundant size from the constant bufferZack Rusin2009-01-272-4/+3
| | | | reuse the size of the actual buffer
* gallium: it's a reference value, not a reference numberZack Rusin2009-01-271-1/+1
|
* gallium: standardize api on the prefix "nr"Zack Rusin2009-01-2710-14/+14
|
* gallium: standardize naming of masksZack Rusin2009-01-271-2/+2
|
* gallium: Remove the standalone surfaces.José Fonseca2009-01-202-36/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This commit is mostly just a cosmetic change that cleans-up the interfaces, replacing pipe_winsys::surface_* calls by /** * Allocate storage for a display target surface. * * Often surfaces which are meant to be blitted to the front screen (i.e., * display targets) must be allocated with special characteristics, memory * pools, or obtained directly from the windowing system. * * This callback is invoked by the pipe_screenwhen creating a texture marked * with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag to get the underlying * buffer storage. */ struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws, unsigned width, unsigned height, enum pipe_format format, unsigned usage, unsigned *stride); Most drivers were updated but not all were tested. Use the softpipe pipe driver and the xlib winsys changes as a reference when fixing other drivers.
* gallium: Replace uint64 by standard uint64_t.José Fonseca2009-01-082-4/+4
| | | | | uint64 is not (so?) standard, and often redefined by third parties, causing name clashes.
* softpipe: increase number of texture samplers/units to PIPE_MAX_SAMPLERS (16)Brian Paul2009-01-021-2/+2
|
* Merge commit 'origin/gallium-0.1' into gallium-0.2José Fonseca2008-12-311-17/+34
|\
| * softpipe: Don't fill surfaces's winsys fields.José Fonseca2008-12-221-2/+0
| | | | | | | | | | This is sometimes checked to distinguish between texture views and (deprecated) standalone surfaces.
| * softpipe: Call surface_alloc_storage to get the pipebuffer for display targets.José Fonseca2008-12-221-15/+34
| | | | | | | | | | Otherwise blitting from display target surfaces to front screen fails in several platforms.
| * softpipe: initialize refcount and winsysJerome Glisse2008-12-221-0/+2
| |
| * softpipe: convert to use texture instead of surfaceJerome Glisse2008-12-221-35/+30
| |
* | gallium: Remove unused variables.José Fonseca2008-12-301-1/+0
| |
* | softpipe: initialize refcount and winsysJerome Glisse2008-12-181-0/+2
| |