nv50/ir: enable early fragment test with explicit user control
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 27 Mar 2016 20:47:37 +0000 (22:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 17:47:49 +0000 (19:47 +0200)
commite09434047d67f8b988b1e607cf3ea3d7124ad905
tree1e51054937ccc8ad744190ec7a35a6b150466efc
parent08f4faa542452a3dbdcc3fd960e75ec043b10390
nv50/ir: enable early fragment test with explicit user control

This feature can be enabled in two ways: as an optimization and by
explicit user control (with OpenGL 4.2 or ARB_shader_image_load_store).

This makes use of the recent TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL to
force early fragment tests when needed.

This fixes a bunch of
dEQP-GLES31.functional.image_load_store.early_fragment_tests.* tests.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp