loader/dri3: Simplify buffer age query
authorRoman Gilg <subdiff@gmail.com>
Mon, 24 Jan 2022 16:14:44 +0000 (17:14 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Oct 2022 08:30:35 +0000 (08:30 +0000)
commitd54464279c1cd5900b126c1d4aba290276878343
tree34811dbd649a68936126f74ac9e2c766d0ad0455
parent2aa588bf0a3d72aaad459a5f4e599916dc5bd743
loader/dri3: Simplify buffer age query

The ternary operator is hard to read. Instead initialize the return variable
to zero and adjust its value in an if-clause.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14684>
src/loader/loader_dri3_helper.c