summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
Commit message (Collapse)AuthorAgeFilesLines
* gallium: remove occlusion_count flag from depth-stencil stateKeith Whitwell2009-05-163-1/+7
| | | | | | | | | Drivers can just keep track of whether they are within a query by monitoring the begin/end query callbacks. The flag adds no information beyond that. Only softpipe was examining this flag -- it has been fixed up and retested with demos/arbocclude.
* softpipe: return PIPE_UNREFERENCED in softpipe_is_buffer/texture_referenced()Brian Paul2009-04-281-2/+2
| | | | | This allows the engine demo to run again (avoid crash in VBO code). This stuff still needs to be revisited someday though...
* gallium/intel/gem: Use softpipe rather than i915simple if INTEL_SOFTPIPE is set.Michel Dänzer2009-04-232-0/+25
|
* softpipe: fix softpipe_is_buffer/texture_referenced() regressionBrian Paul2009-04-201-2/+2
| | | | | | | Return the conservative PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE value for now. This fixes a bunch of regressions seen in piglit and glean.
* softpipe: Simplify softpipe_create's prototype.José Fonseca2009-04-182-7/+3
|
* softpipe: Fix softpipe_is_texture_referenced prototype.José Fonseca2009-04-181-2/+1
|
* softpipe: Remove softpipe_winsys.José Fonseca2009-04-181-12/+0
| | | | Not used by softpipe anyway.
* gallium: Make sure we flush before some texture / buffer operations.Thomas Hellstrom2009-04-151-0/+18
| | | | | | | Also implement context member functions to optimize away those flushes whenever possible. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* softpipe: minor debug-help changes in softpipe_transfer_map()Brian Paul2009-04-071-2/+4
|
* softpipe: clean up the buffer clear and tile cache code a littleBrian Paul2009-04-063-39/+15
|
* gallium: Clean up driver clear() interface.Michel Dänzer2009-04-042-43/+26
| | | | | Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
* softpipe: add additional surface formats in tile cache codeBrian Paul2009-04-031-0/+3
|
* softpipe: use util_is_inf_or_nan()Brian Paul2009-03-311-12/+5
| | | | And print/warn NaN/Inf in print_vertex().
* gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer2009-03-262-12/+0
|
* softpipe: Include declarations.José Fonseca2009-03-251-0/+1
|
* gallium: Remove remnants of reference counting internals outside of p_refcnt.h.Michel Dänzer2009-03-231-1/+0
|
* softpipe: reformatting, comments, minor clean-upsBrian Paul2009-03-224-30/+47
|
* gallium: remove use of origin_lower_leftBrian Paul2009-03-202-25/+6
| | | | | | | | | | | | | | This was used to indicate OpenGL's lower-left origin for fragment window coordinates for polygon stipple and gl_FragCoord. Now: - fragment coordinate origin is always upper-left corner - GL polygon stipple is inverted and shifted before given to gallium - GL fragment programs that use INPUT[WPOS] are modified to use an inverted window coord which is placed in a temp register. Note: the origin_lower_left field still exists in pipe_rasterizer_state. Remove it when all the drivers, etc. no longer reference it.
* softpipe: more texture transfer fixes.Brian Paul2009-03-181-4/+8
| | | | | Need to null-out pointers after freeing transfer objects. Fix mix-ups between tc->transfer and tc->tex_trans fields.
* softpipe: need to set tc->transfer=NULL after destroying the transfer objectBrian Paul2009-03-181-0/+1
| | | | | This fixes a number of crashes/regressions in programs such as lodbias.c, mipmap_limits.c, etc.
* 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.