[Mesa-dev] [PATCH v3 01/10] mesa/dd: Add a function for creating a texture from a buffer object

Neil Roberts neil at linux.intel.com
Thu Jan 22 06:42:11 PST 2015


Jason Ekstrand <jason at jlekstrand.net> writes:

> ---
>  src/mesa/main/dd.h | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>
> diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
> index 2f40915..eb30847 100644
> --- a/src/mesa/main/dd.h
> +++ b/src/mesa/main/dd.h
> @@ -415,6 +415,21 @@ struct dd_function_table {
>                              struct gl_texture_object *texObj,
>                              struct gl_texture_object *origTexObj);
>  
> +   /** Sets the given buffer object as the texture's storage.  The given
> +    * texture must have target GL_TEXTURE_1D, GL_TEXTURE_2D, or
> +    * GL_TEXTURE_RECTANGLE; have only a single level; be immutable; and
> +    * must not have any assigned storage.  The format and dimensions of the
> +    * gl_texture_object will already be initialized.

It might be worth adding GL_TEXTURE_2D_ARRAY to this list because that
is used by the subsequent patches.


More information about the mesa-dev mailing list