summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
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
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')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c2
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex.c2
2 files changed, 2 insertions, 2 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;
diff --git a/src/mesa/drivers/dri/i965/intel_tex.c b/src/mesa/drivers/dri/i965/intel_tex.c
index 3be72d5faa1..b2c0335f198 100644
--- a/src/mesa/drivers/dri/i965/intel_tex.c
+++ b/src/mesa/drivers/dri/i965/intel_tex.c
@@ -114,7 +114,7 @@ intel_alloc_texture_image_buffer(struct gl_context *ctx,
/**
* ctx->Driver.AllocTextureStorage() handler.
*
- * Compare this to _mesa_alloc_texture_storage, which would call into
+ * Compare this to _mesa_AllocTextureStorage_sw, which would call into
* intel_alloc_texture_image_buffer() above.
*/
static GLboolean