aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_clear.c
Commit message (Collapse)AuthorAgeFilesLines
* softpipe: remove the 32bits limitation on depth(-stencil) formatsMorgan Armand2012-01-031-2/+2
| | | | | | | This patch remove the 32bits limitation. As a side effect, it bring the support for the GL_ARB_depth_buffer_float extension. No regression have been found on piglit, and all tests for GL_ARB_depth_buffer_float pass successfully. Signed-off-by: Dave Airlie <[email protected]>
* softpipe: remove unused vars in softpipe_clear()Brian Paul2011-10-181-3/+0
|
* softpipe: add integer supportDave Airlie2011-10-111-4/+3
| | | | | | | This adds support to the clear and tile caches for integer storage and clearing, avoiding any floating paths. Signed-off-by: Dave Airlie <[email protected]>
* gallium: move clear paths from rgba to a pointer to a color union (v2)Dave Airlie2011-09-181-3/+4
| | | | | | | | | | | | | | | This moves the gallium interface for clears from using a pointer to 4 floats to a pointer to a union of float/unsigned/int values. Notes: 1. the value is opaque. 2. only when the value is used should it be interpretered according to the surface format it is going to be used with. 3. float clears on integer buffers and vice-versa are undefined. v2: fixed up vega and graw, dropped hunks that shouldn't have been in patch. Signed-off-by: Dave Airlie <[email protected]>
* softpipe: use the polygon stipple utility moduleBrian Paul2011-07-211-1/+1
| | | | | | | | | | This is an alternative to the draw module's polygon stipple stage. The softpipe implementation here is just a test. The advantange of using the new polygon stipple utility module (with other drivers) is we can avoid software vertex processing in the draw module and get much better performance. Polygon stipple doesn't require special vertex processing like the other draw module stage.
* softpipe: Hardcode TILE_CLEAR_OPTIMIZATION to 1.José Fonseca2010-04-251-10/+0
| | | | | The un-optimized path relies on surface_fill which can only handle formats with depth <= 32, so it is pointless to keep it around.
* softpipe: implement conditional renderingBrian Paul2009-12-311-0/+4
|
* gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger2009-12-071-3/+4
| | | | | | | | use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place.
* softpipe: remove unneeded #includesBrian Paul2009-09-101-2/+0
|
* softpipe: minor indentation fixBrian Paul2009-09-101-1/+1
|
* softpipe: set dirty_render_cache in softpipe_clear()Brian Paul2009-09-101-0/+2
| | | | | | | This fixes a bug seen when doing a glDrawPixels(GL_STENCIL_INDEX) right after a glClear(). The check-for-flush test was failing because we didn't set the dirty_render_cache flag in softpipe_clear(). So we saw stale data when we mapped the stencil buffer.
* softpipe: clean up the buffer clear and tile cache code a littleBrian Paul2009-04-061-2/+3
|
* gallium: Clean up driver clear() interface.Michel Dänzer2009-04-041-41/+24
| | | | | Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
* gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer2009-03-261-2/+0
|
* gallium: standardize api on the prefix "nr"Zack Rusin2009-01-271-1/+1
|
* softpipe: convert clear color to surface format if neededBrian Paul2008-09-051-1/+30
|
* softpipe: implement SP_NO_RAST env varKeith Whitwell2008-04-221-0/+3
|
* gallium: set surface status to CLEAR or DEFINED in clearing/drawing code.Brian2008-03-131-0/+2
| | | | | Otherwise, we were never setting these flags. This confused the state tracker. Fixes progs/demos/texenv.c, probably others.
* Code reorganization: move files into their places.José Fonseca2008-02-151-0/+73
This is in a separate commit to ensure renames are properly preserved.