[Mesa-dev] [PATCH 2/2] st/mesa: Invalidate external textures when (re-)binding

Ilia Mirkin imirkin at alum.mit.edu
Thu May 26 14:36:19 UTC 2016


On Thu, May 26, 2016 at 10:31 AM, Marek Olšák <maraeo at gmail.com> wrote:
> On Wed, May 25, 2016 at 3:34 PM, Philipp Zabel <p.zabel at pengutronix.de> wrote:
>> Am Mittwoch, den 25.05.2016, 09:23 -0400 schrieb Ilia Mirkin:
>>> Iirc invalidate_resource is to allow backend to discard the contents...
>>
>> Thanks, I didn't know that. So this would need a new callback then?
>> Specifically I want to discard a copy in tiled layout that was derived
>> from a linear external texture previously.
>
> FWIW, radeon drivers don't change the tile mode after a texture has
> been exported. When the texture is exported, the tile mode is set in
> stone, be it linear or tiled. There is no second copy.

I think what he's saying is that they have a shadow copy of the
texture, and need to know when to update the shadow.

  -ilia


More information about the mesa-dev mailing list