<div dir="auto"><span style="font-family:sans-serif">Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 6, 2016 5:17 PM, "Philipp Zabel" <<a href="mailto:p.zabel@pengutronix.de">p.zabel@pengutronix.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For imported buffers that can't be used directly as a source to the<br>
texture samplers, the pipe driver might need to create an internal<br>
copy, for example in a different tiling layout. When buffers are<br>
reimported they may contain new image data, so the driver internal<br>
copies need to be recreated.<br>
<br>
Signed-off-by: Philipp Zabel <<a href="mailto:p.zabel@pengutronix.de">p.zabel@pengutronix.de</a>><br>
---<br>
src/gallium/state_trackers/<wbr>dri/dri2.c | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/gallium/state_trackers/<wbr>dri/dri2.c b/src/gallium/state_trackers/<wbr>dri/dri2.c<br>
index 9ec069b..a216e83 100644<br>
--- a/src/gallium/state_trackers/<wbr>dri/dri2.c<br>
+++ b/src/gallium/state_trackers/<wbr>dri/dri2.c<br>
@@ -1168,6 +1168,10 @@ dri2_from_planar(__DRIimage *image, int plane, void *loaderPrivate)<br>
if (img == NULL)<br>
return NULL;<br>
<br>
+ if (img->texture->screen-><wbr>resource_changed)<br>
+ img->texture->screen-><wbr>resource_changed(img->texture-<wbr>>screen,<br>
+ img->texture);<br>
+<br>
/* set this to 0 for sub images. */<br>
img->dri_components = 0;<br>
return img;<br>
--<br>
2.10.2<br>
<br>
</blockquote></div></div>