diff options
author | Eric Anholt <[email protected]> | 2013-04-13 01:37:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-04-21 12:28:04 -0700 |
commit | 1842dd08b83269816fe8eb8f2dcc1252f606fe48 (patch) | |
tree | 61d1cca575fe3be59af5ad5c79d0a45e85479701 /src/mesa/main/texstorage.h | |
parent | e86170c2b88f9970a124479bbf47b5a7cd43d628 (diff) |
mesa: Generalize TexStorage allocator between swrast and intel.
This should be reusable for other non-gallium drivers, so we can make the
extension always be available.
v2: Add a more detailed comment than the old function had (recommended
by Brian).
Reviewed-by: Brian Paul <[email protected]> (v1)
Diffstat (limited to 'src/mesa/main/texstorage.h')
-rw-r--r-- | src/mesa/main/texstorage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/texstorage.h b/src/mesa/main/texstorage.h index 9f172e1ca65..0240ca330bd 100644 --- a/src/mesa/main/texstorage.h +++ b/src/mesa/main/texstorage.h @@ -60,5 +60,10 @@ _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, extern GLboolean _mesa_is_legal_tex_storage_format(struct gl_context *ctx, GLenum internalformat); +extern GLboolean +_mesa_alloc_texture_storage(struct gl_context *ctx, + struct gl_texture_object *texObj, + GLsizei levels, GLsizei width, + GLsizei height, GLsizei depth); #endif /* TEXSTORAGE_H */ |