summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common
diff options
context:
space:
mode:
authorEduardo Lima Mitev <elima@igalia.com>2015-10-27 15:58:59 +0100
committerEduardo Lima Mitev <elima@igalia.com>2016-03-03 15:14:05 +0100
commit45054f9702bd07cd293c1f6c1317eae9530cc4da (patch)
treeb5a5ed1fed0f9e339280d1faff1552e21d0c2985 /src/mesa/drivers/common
parent93d30c3de95a1d373285cd7353343817c23dbb64 (diff)
downloadexternal_mesa3d-45054f9702bd07cd293c1f6c1317eae9530cc4da.zip
external_mesa3d-45054f9702bd07cd293c1f6c1317eae9530cc4da.tar.gz
external_mesa3d-45054f9702bd07cd293c1f6c1317eae9530cc4da.tar.bz2
mesa: Add a default QueryInternalFormat() function for drivers
This is a fallback function for drivers not implementing ARB_internalformat_query2. Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/drivers/common')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 752aaf6..e6334d8 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -91,6 +91,7 @@ _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;
driver->GetTexSubImage = _mesa_meta_GetTexSubImage;