Add a hook to tell drivers that an imported resource may have changed and they need to update their internal derived resources.
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- src/gallium/include/pipe/p_screen.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index 255647e..e21229e 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -224,6 +224,12 @@ struct pipe_screen { struct winsys_handle *handle, unsigned usage); + /** + * Trigger recreation of derived internal resources. This can be used for + * reimporting external images that can't be directly used as texture + * sampler source. + */ + void (*resource_changed)(struct pipe_screen *, struct pipe_resource *pt); void (*resource_destroy)(struct pipe_screen *, struct pipe_resource *pt); -- 2.10.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev