aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_clear.h
Commit message (Collapse)AuthorAgeFilesLines
* gallium: move clear paths from rgba to a pointer to a color union (v2)Dave Airlie2011-09-181-2/+2
| | | | | | | | | | | | | | | 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]>
* gallium: rename clearRT / clearDS to clear_render_target / clear_depth_stencilRoland Scheidegger2010-06-031-4/+4
| | | | | more consistent with rest of gallium naming conventions. Also rename driver-internal names for these the same.
* util: adapt to clear interface changesRoland Scheidegger2010-05-291-19/+8
|
* gallium/util: adapt util code to interface changesRoland Scheidegger2010-05-171-12/+11
| | | | | | | | | | | The util blit functions change their interface (apart from some rename) too (in particular util_blit_pixels now also takes a pipe_resource as the src blit argument instead of a surface, as it might just call resource_copy_region). Maybe the blit util code might need a bit more cleanup, it still doesn't feel very clean. In particular it seems that util_blit_pixels_tex should probably disappear, and I think it would be great if the code called by drivers for blitting (u_blitter.c, which isn't really touched by this change) could somehow be merged with the u_blit code.
* gallium: move surface utility functions into u_surface.cBrian Paul2010-05-031-0/+1
| | | | This is a better place than in u_rect.c
* gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger2009-12-071-4/+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.
* gallium: Permit surface_copy and surface_fill to be NULL.Corbin Simpson2009-10-171-3/+13
| | | | | | | | | | | | | Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc. please make sure you are not broken, and fix yourself up if you are. There were only two or three places where the code did not have painful fallbacks, so I would advise st maintainers to find less painful workarounds, or consider overhauling util_surface_copy and util_surface_fill. Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is. I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
* gallium: Clean up driver clear() interface.Michel Dänzer2009-04-041-0/+60
Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.