diff options
author | Ilia Mirkin <[email protected]> | 2014-03-25 17:10:54 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-03-31 21:20:02 -0400 |
commit | 24b86cb3047507078ae8d0e2e8943586ee85ede5 (patch) | |
tree | f348a97667ae0ba620bd14bdd0d3f972844ea533 /src/gallium/include/pipe/p_context.h | |
parent | 4c035706dc3213d835dbd592655db14732296067 (diff) |
gallium: add interface to clear buffers
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index fe3045acb9c..bf27285c0f3 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -332,6 +332,17 @@ struct pipe_context { unsigned dstx, unsigned dsty, unsigned width, unsigned height); + /** + * Clear a buffer. Runs a memset over the specified region with the element + * value passed in through clear_value of size clear_value_size. + */ + void (*clear_buffer)(struct pipe_context *pipe, + struct pipe_resource *res, + unsigned offset, + unsigned size, + const void *clear_value, + int clear_value_size); + /** Flush draw commands * * \param flags bitfield of enum pipe_flush_flags values. |