mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
mesa: flush and wait after creating a fallback texture
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>
This commit is contained in:
parent
46444613cf
commit
cc78d77043
1 changed files with 5 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue