mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
st/mesa: call resource_changed when binding a EGLImage to a texture
When a EGLImage is newly bound to a texture, we need to make sure the driver is informed that the resource might have changed. Fixes stale texture content on Etnaviv when binding an existing EGLImage to an existing texture object. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
1f616a840e
commit
501d0edeca
1 changed files with 1 additions and 0 deletions
|
|
@ -229,6 +229,7 @@ st_bind_egl_image(struct gl_context *ctx,
|
|||
pipe_resource_reference(&stObj->pt, stimg->texture);
|
||||
st_texture_release_all_sampler_views(st, stObj);
|
||||
pipe_resource_reference(&stImage->pt, stObj->pt);
|
||||
st->pipe->screen->resource_changed(st->pipe->screen, stImage->pt);
|
||||
|
||||
stObj->surface_format = stimg->format;
|
||||
stObj->level_override = stimg->level;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue