summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEduardo Lima Mitev <elima@igalia.com>2015-12-16 18:11:36 +0100
committerEduardo Lima Mitev <elima@igalia.com>2016-03-03 15:14:05 +0100
commita347a0f53fbdd9b607d7eae4a483e62f82c68cb1 (patch)
tree41b71e690373ec4c6e121e0a0331c4bc5e883e4e /src
parent993d7345b7c356d96f3d24865d83ff368bc6fc55 (diff)
downloadexternal_mesa3d-a347a0f53fbdd9b607d7eae4a483e62f82c68cb1.zip
external_mesa3d-a347a0f53fbdd9b607d7eae4a483e62f82c68cb1.tar.gz
external_mesa3d-a347a0f53fbdd9b607d7eae4a483e62f82c68cb1.tar.bz2
mesa: Completely remove QuerySamplesForFormat from driver func table
At this point, all uses have been replaced by the more general hook QueryInternalFormat, introduced by ARB_internalformat_query2. Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c1
-rw-r--r--src/mesa/main/dd.h18
-rw-r--r--src/mesa/main/formatquery.c14
3 files changed, 0 insertions, 33 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index e6334d8..e96f92a 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -90,7 +90,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
/* 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;
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 2f151c2..60bc8ef 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -184,24 +184,6 @@ struct dd_function_table {
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
* over ARB_internalformat_query, having one driver hook for each parameter
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 21d10a8..a7f053e 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -29,20 +29,6 @@
#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.
*/