summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/driverfuncs.c
diff options
context:
space:
mode:
authorLaura Ekstrand <[email protected]>2014-12-04 14:28:19 -0800
committerLaura Ekstrand <[email protected]>2015-01-08 11:37:28 -0800
commit16f6d9cf5f93eb6cdd80e2b5f6cdd7dcfb30ea89 (patch)
tree95fd099503b9de639a5aa5f44c17670ac47e3a96 /src/mesa/drivers/common/driverfuncs.c
parent35371d65607780a2fc63a65cba2d34562538ff96 (diff)
main: Changed _mesa_alloc_texture_storage to _mesa_AllocTextureStorage_sw.
In order to implement ARB_DIRECT_STATE_ACCESS, many GL API functions must now rely on a backend that both traditional and DSA functions can use. For instance, _mesa_TexStorage2D and _mesa_TextureStorage2D both call a backend function _mesa_texture_storage that takes a context and a texture object as arguments. The backend is named _mesa_texture_storage so that Meta can call it and avoid looking up the context and the texture object. However, backend names often look very close to the names of software fallbacks (ie. _mesa_alloc_texture_storage). For this reason, software fallbacks have been renamed for clarity to have the form _mesa_[Driver function name]_sw. Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/driverfuncs.c')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 4f0f7a686ab..0a5220ad760 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -210,7 +210,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
driver->EndCallList = NULL;
/* GL_ARB_texture_storage */
- driver->AllocTextureStorage = _mesa_alloc_texture_storage;
+ driver->AllocTextureStorage = _mesa_AllocTextureStorage_sw;
/* GL_ARB_texture_view */
driver->TextureView = NULL;