X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Ftexturebindless.c;h=cb95ed07c5aeaada2df8e41ebbea9951e74e8862;hb=1ebe4305fd0e4b4f023eb50ca0b8229bdd7c1a5e;hp=5c606e9f4b4d00064ec921f44a971cd9a4345685;hpb=0fb2c89c717214df5e99c7f1bd493c9ec89cada9;p=mesa.git diff --git a/src/mesa/main/texturebindless.c b/src/mesa/main/texturebindless.c index 5c606e9f4b4..cb95ed07c5a 100644 --- a/src/mesa/main/texturebindless.c +++ b/src/mesa/main/texturebindless.c @@ -532,6 +532,20 @@ is_sampler_border_color_valid(struct gl_sampler_object *samp) return GL_FALSE; } +GLuint64 GLAPIENTRY +_mesa_GetTextureHandleARB_no_error(GLuint texture) +{ + struct gl_texture_object *texObj; + + GET_CURRENT_CONTEXT(ctx); + + texObj = _mesa_lookup_texture(ctx, texture); + if (!_mesa_is_texture_complete(texObj, &texObj->Sampler)) + _mesa_test_texobj_completeness(ctx, texObj); + + return get_texture_handle(ctx, texObj, &texObj->Sampler); +} + GLuint64 GLAPIENTRY _mesa_GetTextureHandleARB(GLuint texture) { @@ -583,6 +597,23 @@ _mesa_GetTextureHandleARB(GLuint texture) return get_texture_handle(ctx, texObj, &texObj->Sampler); } +GLuint64 GLAPIENTRY +_mesa_GetTextureSamplerHandleARB_no_error(GLuint texture, GLuint sampler) +{ + struct gl_texture_object *texObj; + struct gl_sampler_object *sampObj; + + GET_CURRENT_CONTEXT(ctx); + + texObj = _mesa_lookup_texture(ctx, texture); + sampObj = _mesa_lookup_samplerobj(ctx, sampler); + + if (!_mesa_is_texture_complete(texObj, sampObj)) + _mesa_test_texobj_completeness(ctx, texObj); + + return get_texture_handle(ctx, texObj, sampObj); +} + GLuint64 GLAPIENTRY _mesa_GetTextureSamplerHandleARB(GLuint texture, GLuint sampler) { @@ -740,6 +771,21 @@ _mesa_MakeTextureHandleNonResidentARB(GLuint64 handle) make_texture_handle_resident(ctx, texHandleObj, false); } +GLuint64 GLAPIENTRY +_mesa_GetImageHandleARB_no_error(GLuint texture, GLint level, GLboolean layered, + GLint layer, GLenum format) +{ + struct gl_texture_object *texObj; + + GET_CURRENT_CONTEXT(ctx); + + texObj = _mesa_lookup_texture(ctx, texture); + if (!_mesa_is_texture_complete(texObj, &texObj->Sampler)) + _mesa_test_texobj_completeness(ctx, texObj); + + return get_image_handle(ctx, texObj, level, layered, layer, format); +} + GLuint64 GLAPIENTRY _mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format)