Commit 501d0ede authored by Lucas Stach's avatar Lucas Stach
Browse files

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's avatarLucas Stach <l.stach@pengutronix.de>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 1f616a84
......@@ -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;
......
  • mentioned in commit 34e89e4d

    Toggle commit list
  • Dylan Baker @dbaker

    mentioned in commit 7e5eb7e3435efa817cd2a92e06d59f715435ae21

    ·

    mentioned in commit 7e5eb7e3435efa817cd2a92e06d59f715435ae21

    Toggle commit list
  • Michel Dänzer @daenzer

    mentioned in commit 2fe2b93bb310f85456343797183d31dc439b3408

    ·

    mentioned in commit 2fe2b93bb310f85456343797183d31dc439b3408

    Toggle commit list
  • Michel Dänzer @daenzer

    mentioned in commit 8e549842c24d5c621d1671d5a9cfda01ff37554a

    ·

    mentioned in commit 8e549842c24d5c621d1671d5a9cfda01ff37554a

    Toggle commit list
  • Dylan Baker @dbaker

    mentioned in commit b4488cb4b454fa5f633fc2ba3f12a48bd956184a

    ·

    mentioned in commit b4488cb4b454fa5f633fc2ba3f12a48bd956184a

    Toggle commit list
  • mentioned in commit c94cde95

    Toggle commit list
  • mentioned in commit 01d1f471

    Toggle commit list
Supports Markdown
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