st/dri: ask the driver to update its internal copies on reimport
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 19 Jan 2017 14:05:37 +0000 (15:05 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 20 Jan 2017 14:30:29 +0000 (15:30 +0100)
commit2c95d6dac399ca58c5bf93f03cd4d19dc84c55af
tree7560ea031b6dc63c9b71b304f112707fdd38fc4c
parent30853f55a3b4c409802ac470ae0530311c36e0c7
st/dri: ask the driver to update its internal copies on reimport

For imported buffers that can't be used directly as a source to the
texture samplers, the pipe driver might need to create an internal
copy, for example in a different tiling layout. When buffers are
reimported they may contain new image data, so the driver internal
copies need to be recreated.

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/gallium/state_trackers/dri/dri2.c