mesa/src/mesa
Erik Faye-Lund 2e369e60aa mesa: treat unsupported queries as dummies
It's legal in OpenGL to start a query even if the result will have zero
valid bits. It's not enough to just report zero bits, We need to also
prevent calling down into the driver with these invalid queries.

Because ARB_ES3_compatibility adds ANY_SAMPLES_PASSED and
ANY_SAMPLES_PASSED_CONSERVATIVE to the set of queries that support zero
bits, we also need to check for the corresponding indices.

Fixes: 0186e9e1c5 ("mesa: always support occlusion queries")
Reviewed-by: Soroush Kashani <soroush.kashani@imgtec.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19750>
(cherry picked from commit 1b1e8873fe)
2022-11-30 21:12:42 +00:00
..
main mesa: treat unsupported queries as dummies 2022-11-30 21:12:42 +00:00
math include: drop c99_math.h 2022-06-02 13:09:16 +00:00
program mesa,gallium: Revert "Make point coord origin a CAP" 2022-10-16 02:23:12 +00:00
state_tracker mesa: treat unsupported queries as dummies 2022-11-30 21:12:42 +00:00
vbo glapi: remove EXT and ARB suffixes from Draw functions 2022-10-19 04:23:05 +00:00
x86 mesa: Delete libmesa_classic 2021-12-03 23:53:06 +00:00
meson.build mesa, dri2: Move interop helpers from dri2 to state tracker 2022-11-02 18:11:41 +00:00