[Mesa-dev] [RFC PATCH 06/26] mesa: add new texture state for ARB_texture_multisample
Brian Paul
brianp at vmware.com
Wed Jan 2 09:59:52 PST 2013
On 12/29/2012 05:35 AM, Chris Forbes wrote:
> Signed-off-by: Chris Forbes<chrisf at ijw.co.nz>
> ---
> src/mesa/main/mtypes.h | 4 ++++
> src/mesa/main/texobj.c | 3 +++
> 2 files changed, 7 insertions(+)
>
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index db87ead..4be1074 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -1302,6 +1302,10 @@ struct gl_texture_object
>
> /** GL_OES_EGL_image_external */
> GLint RequiredTextureImageUnits;
> +
> + /** GL_ARB_texture_multisample */
> + GLuint NumSamples; /**< Sample count, or 0 for non-multisample */
> + GLboolean FixedSampleLocations; /**< Same sample locations for all pixels? */
According to the extension spec, these fields should be per-image, not
per-texture so they should be in the gl_texture_image structure. The
fact that these fields are also queried with glGetTexLevelParameter()
is another clue.
-Brian
More information about the mesa-dev
mailing list