nv_conditional_render: Test a glClear optimization
commitb679c172cff022482a5df580449ce1ea42de6949
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 24 Nov 2020 19:48:13 +0000 (24 11:48 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Jan 2021 23:29:36 +0000 (8 23:29 +0000)
tree72563f3dbbfff9164f74537a89299b4ae5d30b27
parent9f21f55882c0f63909afeed8c8502ce82e1e3adb
nv_conditional_render: Test a glClear optimization

Drivers may perform optimizations around glClear calls. iris in
particular, can skip redundant clear calls.

This test demonstrates an iris driver bug in which the skipping
optimization is incorrectly affected by a conditional clear.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/421>
tests/opengl.py
tests/spec/nv_conditional_render/CMakeLists.gl.txt
tests/spec/nv_conditional_render/clear-bug.c [new file with mode: 0644]