radeonsi: optionally run the LLVM IR verifier pass
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 28 Sep 2016 19:44:55 +0000 (21:44 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 4 Oct 2016 14:39:33 +0000 (16:39 +0200)
commit8b1f9fd3b3e4b7703314278061d7905a6e780ce7
tree27ce61daca5d020ebd78b9705c0d423f90e6c57a
parent1e9476e8c565d0fda26413f17a411ed35d9ce67d
radeonsi: optionally run the LLVM IR verifier pass

This is enabled automatically if shader printing is enabled, or separately
by R600_DEBUG=checkir. Catch mal-formed IR before it crashes in a later
pass.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/radeon_llvm.h
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
src/gallium/drivers/radeonsi/si_shader.c