diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-10-22 17:39:04 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-11-06 11:12:49 +0100 |
commit | b3cccaabfde8d058bd5d3d1d86bf33a89e5b5870 (patch) | |
tree | 6a1cce3b973276871c727855c9274b786572acd5 | |
parent | 9d0382a694eedabb4612d105610e4f95cd8cbcc6 (diff) |
mesa: flush and wait after creating a fallback texturefences-threads-ddebug
Fixes non-deterministic failures in
dEQP-EGL.functional.sharing.gles2.multithread.simple_egl_sync.images.texture_source.teximage2d_render
and others in dEQP-EGL.functional.sharing.gles2.multithread.*
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r-- | src/mesa/main/texobj.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 1978898b8b..9d625fa0ae 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1051,6 +1051,11 @@ _mesa_get_fallback_texture(struct gl_context *ctx, gl_texture_index tex) assert(texObj->_MipmapComplete); ctx->Shared->FallbackTex[tex] = texObj; + + /* Complete the driver's operation in case another context will also + * use the same fallback texture. */ + if (ctx->Driver.Finish) + ctx->Driver.Finish(ctx); } return ctx->Shared->FallbackTex[tex]; } |