summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2018-03-20 12:14:12 +0100
committerLucas Stach <[email protected]>2018-07-12 11:02:04 +0200
commit501d0edeca321637b20a0ad1b9d476e6919131c3 (patch)
treed2c147160db79fc64a4831c88bcef8810d0c28ad
parent1f616a840eac02241c585d28e9dac8f19a297f39 (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_cb_eglimage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_eglimage.c b/src/mesa/state_tracker/st_cb_eglimage.c
index bb092a2f6ef..4f33cb4bb06 100644
--- a/src/mesa/state_tracker/st_cb_eglimage.c
+++ b/src/mesa/state_tracker/st_cb_eglimage.c
@@ -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;