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

Marek Olšák maraeo at gmail.com
Thu May 26 14:39:34 UTC 2016


On Thu, May 26, 2016 at 4:36 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 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.

Is it a tiler-specific thing?

Would pipe->memory_barrier be a good match for this?

Marek


More information about the mesa-dev mailing list