read_depth_offset: new test to check depth offset calculation
commit2c64a91bb0a1d983beb6d9ae1085b10cf2aa89a5
authorEric R. Smith <eric.smith@collabora.com>
Thu, 4 Apr 2024 20:10:21 +0000 (4 17:10 -0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 24 Apr 2024 12:45:51 +0000 (24 12:45 +0000)
tree14a6198fafe0a846a647453fcd31c087f246f2a7
parent869a1b6e83b921671ac3439fd5f56ef357899645
read_depth_offset: new test to check depth offset calculation

We have tests to validate depth offsets in general, but these
apply to the default depth buffer (usually 24 bit fixed point).
This test checks the details of the depth offset calculation
by using NV_read_pixel to read back the written values, and
verifies that e.g. the minimum resolvable difference used for
floating point buffers matches the spec. This revealed a bug
on panfrost.

Signed-off-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/900>
tests/spec/gles-3.0/CMakeLists.gles3.txt
tests/spec/gles-3.0/read-depth-offset.c [new file with mode: 0644]