/* Texture functions */
driver->ChooseTextureFormat = _mesa_choose_tex_format;
- driver->QuerySamplesForFormat = _mesa_query_samples_for_format;
driver->QueryInternalFormat = _mesa_query_internal_format_default;
driver->TexImage = _mesa_store_teximage;
driver->TexSubImage = _mesa_store_texsubimage;
GLenum target, GLint internalFormat,
GLenum srcFormat, GLenum srcType );
- /**
- * Determine sample counts support for a particular target and format
- *
- * \param ctx GL context
- * \param target GL target enum
- * \param internalFormat GL format enum
- * \param samples Buffer to hold the returned sample counts.
- * Drivers \b must \b not return more than 16 counts.
- *
- * \returns
- * The number of sample counts actually written to \c samples. If
- * \c internaFormat is not renderable, zero is returned.
- */
- size_t (*QuerySamplesForFormat)(struct gl_context *ctx,
- GLenum target,
- GLenum internalFormat,
- int samples[16]);
-
/**
* Queries different driver parameters for a particular target and format.
* Since ARB_internalformat_query2 introduced several new query parameters
#include "fbobject.h"
#include "formatquery.h"
-/* default implementation of QuerySamplesForFormat driverfunc, for
- * non-multisample-capable drivers. */
-size_t
-_mesa_query_samples_for_format(struct gl_context *ctx, GLenum target,
- GLenum internalFormat, int samples[16])
-{
- (void) target;
- (void) internalFormat;
- (void) ctx;
-
- samples[0] = 1;
- return 1;
-}
-
/* default implementation of QueryInternalFormat driverfunc, for
* drivers not implementing ARB_internalformat_query2.
*/