summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_surface.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2010-06-07 20:47:07 +0200
committerRoland Scheidegger <sroland@vmware.com>2010-06-07 20:49:16 +0200
commita2bf4817bb735298ec9282971167e62612942c0d (patch)
treeed6618507eb35745728079ea04ce013e83f65517 /src/gallium/auxiliary/util/u_surface.h
parent9d343f4ba18e506942a9c1f70f0ccae1309d7ece (diff)
util: implement util_clear_depth_stencil fallback
this doesn't really look terribly useful for drivers to use, but until drivers use their own implementation provide this since some state trackers really want to use these functions.
Diffstat (limited to 'src/gallium/auxiliary/util/u_surface.h')
-rw-r--r--src/gallium/auxiliary/util/u_surface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_surface.h b/src/gallium/auxiliary/util/u_surface.h
index d8fb9f1d6f..6cd12af3a8 100644
--- a/src/gallium/auxiliary/util/u_surface.h
+++ b/src/gallium/auxiliary/util/u_surface.h
@@ -63,6 +63,14 @@ util_clear_render_target(struct pipe_context *pipe,
unsigned dstx, unsigned dsty,
unsigned width, unsigned height);
+extern void
+util_clear_depth_stencil(struct pipe_context *pipe,
+ struct pipe_surface *dst,
+ unsigned clear_flags,
+ double depth,
+ unsigned stencil,
+ unsigned dstx, unsigned dsty,
+ unsigned width, unsigned height);
#endif /* U_SURFACE_H */