Commit 845a09b8 by Ian Elliott Committed by Commit Bot

Vulkan: glDeleteTexture unbind all image texture units

The old code only unbound one image unit when a texture was deleted. The GLES specification is clear that the texture should be unbound from all units: If a texture object bound to one or more image units is deleted by DeleteTextures, it is detached from each such image unit, as though BindImageTexture were called with unit identifying the image unit and texture set to zero. Bug: angleproject:4310 Change-Id: I24c508660ad7eb3aa944601175803751b54ce0dc Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2011322Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Ian Elliott <ianelliott@google.com>
parent 62475e95
...@@ -1232,7 +1232,6 @@ void State::detachTexture(const Context *context, const TextureMap &zeroTextures ...@@ -1232,7 +1232,6 @@ void State::detachTexture(const Context *context, const TextureMap &zeroTextures
bindingImageUnit.layer = 0; bindingImageUnit.layer = 0;
bindingImageUnit.access = GL_READ_ONLY; bindingImageUnit.access = GL_READ_ONLY;
bindingImageUnit.format = GL_R32UI; bindingImageUnit.format = GL_R32UI;
break;
} }
} }
......
...@@ -60,7 +60,6 @@ ...@@ -60,7 +60,6 @@
// Image related failures // Image related failures
4310 : KHR-GLES31.core.shader_image_load_store.basic-api-bind = FAIL
4311 : KHR-GLES31.core.shader_image_load_store.basic-api-texParam = FAIL 4311 : KHR-GLES31.core.shader_image_load_store.basic-api-texParam = FAIL
4314 : KHR-GLES31.core.shader_image_load_store.basic-glsl-earlyFragTests = FAIL 4314 : KHR-GLES31.core.shader_image_load_store.basic-glsl-earlyFragTests = FAIL
4316 : KHR-GLES31.core.shader_image_load_store.negative-linkErrors = FAIL 4316 : KHR-GLES31.core.shader_image_load_store.negative-linkErrors = FAIL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment