diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-03 22:06:27 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-14 10:04:35 +0200 |
commit | 1fe7b1f9724ac38cbddcac6505d3750ef99a2eca (patch) | |
tree | 96c8051197c169332feef881c98516126aa919c9 /src/mesa/main/shared.c | |
parent | 6649b840c34016b4753e69d4513a8d09da9febb2 (diff) |
mesa: implement ARB_bindless_texture
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/shared.c')
-rw-r--r-- | src/mesa/main/shared.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index 53448127389..6926d40570b 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -39,6 +39,7 @@ #include "shaderapi.h" #include "shaderobj.h" #include "syncobj.h" +#include "texturebindless.h" #include "util/hash_table.h" #include "util/set.h" @@ -84,6 +85,9 @@ _mesa_alloc_shared_state(struct gl_context *ctx) /* GL_ARB_sampler_objects */ shared->SamplerObjects = _mesa_NewHashTable(); + /* GL_ARB_bindless_texture */ + _mesa_init_shared_handles(shared); + /* Allocate the default buffer object */ shared->NullBufferObj = ctx->Driver.NewBufferObject(ctx, 0); @@ -373,6 +377,8 @@ free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared) _mesa_HashDeleteAll(shared->TexObjects, delete_texture_cb, ctx); _mesa_DeleteHashTable(shared->TexObjects); + _mesa_free_shared_handles(shared); + mtx_destroy(&shared->Mutex); mtx_destroy(&shared->TexMutex); |