From 24b86cb3047507078ae8d0e2e8943586ee85ede5 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Tue, 25 Mar 2014 17:10:54 -0400 Subject: gallium: add interface to clear buffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák --- src/gallium/docs/source/context.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/docs') diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index 8e14522667a..efa2a1c77f0 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -218,6 +218,11 @@ is is also possible to only clear one or the other part). While it is only possible to clear one surface at a time (which can include several layers), this surface need not be bound to the framebuffer. +``clear_buffer`` clears a PIPE_BUFFER resource with the specified clear value +(which may be multiple bytes in length). Logically this is a memset with a +multi-byte element value starting at offset bytes from resource start, going +for size bytes. It is guaranteed that size % clear_value_size == 0. + Drawing ^^^^^^^ -- cgit v1.2.3