[Mesa-dev] [PATCH 1/3] gallium: add interface to clear buffers
Roland Scheidegger
sroland at vmware.com
Tue Mar 25 16:10:16 PDT 2014
Am 25.03.2014 23:48, schrieb Ilia Mirkin:
> On Tue, Mar 25, 2014 at 6:32 PM, Roland Scheidegger <sroland at vmware.com> wrote:
>> Am 25.03.2014 22:36, schrieb Ilia Mirkin:
>>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>>> ---
>>> src/gallium/include/pipe/p_context.h | 11 +++++++++++
>>> 1 file changed, 11 insertions(+)
>>>
>>> diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
>>> index fe3045a..bf27285 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.
>>>
>>
>> Where's the docs?
>
> Which docs? Aha, just found src/gallium/docs/source/context.rst -- is
> that what you're referring to?
>
Yes. All functions must be documented.
Roland
More information about the mesa-dev
mailing list