st/mesa: ask pipe driver to recreate derived internal resources when (re-)binding...
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 19 Jan 2017 14:05:41 +0000 (15:05 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 20 Jan 2017 14:30:30 +0000 (15:30 +0100)
commit97de7e658664865f042b1729f3f959ee0fb7b6a4
treeaa68cf858e1db143d6e0f033b5319f14c425a8f9
parent9bab714c61fa1eb22c6723af81caf83fffe549f4
st/mesa: ask pipe driver to recreate derived internal resources when (re-)binding external textures

Use the resource_changed callback to invalidate internal resources
derived from external textures when they are (re-)bound. This is needed
to comply with the requirement from the GL_OES_EGL_image_external
extension that a call to glBindTexture guarantees that all further
sampling will return values that correspond to the values in the
external texture at or after the time that glBindTexture was called.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
src/mesa/state_tracker/st_atom_texture.c