mesa/src/gallium/auxiliary/renderonly
Michael Tretter ee62f4629a kmsro: assert that scanout refcount is larger than 0
The dumb buffer backing the renderonly_scanout is only destroyed if the
refcount reaches zero. If a driver does not correctly initialize the
refcount, the refcount may be negative and the buffer will never be
freed.

Add an assert to ensure that drivers correctly initialize the refcount.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23743>
2023-07-05 12:10:18 +00:00
..
renderonly.c kmsro: assert that scanout refcount is larger than 0 2023-07-05 12:10:18 +00:00
renderonly.h treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00