tegra: Use private reference counts for sampler views and resources
- Feb 16, 2022
-
-
Thierry Reding authored
With the recent addition of the shortcuts aiming to avoid atomic operations, the reference count on resources can become unbalanced in the Tegra driver since they are wrapped and then proxied to the Nouveau driver. Fix this by keeping a private reference count. Fixes: 7688b8ae ("st/mesa: eliminate all atomic ops when setting vertex buffers") Reviewed-by:
Karol Herbst <kherbst@redhat.com> Tested-by:
Karol Herbst <kherbst@redhat.com>
-
Thierry Reding authored
With the recent addition of the shortcuts aiming to avoid atomic operations, the reference count on sampler views can become unbalanced in the Tegra driver since they are wrapped and then proxied to the Nouveau driver. Fix this by keeping a private reference count. Fixes: ef5d4274 ("st/mesa: add a mechanism to bypass atomics when binding sampler views") Reviewed-by:
Karol Herbst <kherbst@redhat.com> Tested-by:
Karol Herbst <kherbst@redhat.com>
-