r600g: Disable LLVM by default at runtime for graphics
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 16 Apr 2014 06:00:09 +0000 (15:00 +0900)
committerMichel Dänzer <michel@daenzer.net>
Thu, 17 Apr 2014 01:15:59 +0000 (10:15 +0900)
commit7286739b9beea4683a29fe91850688a07ce23e1a
tree8ea984e2adea8550deebc474385f54553075325b
parentf23d1160c24e16ced319d838ed3102b731c2ff03
r600g: Disable LLVM by default at runtime for graphics

For graphics, the LLVM compiler backend currently has many shortcomings
compared to the non-LLVM one. E.g. it can't handle geometry shaders yet,
but that's just the tip of the iceberg.

So building Mesa with --enable-r600-llvm-compiler is currently not
recommended for anyone who doesn't want to work on fixing those issues.
However, for protection of users who end up enabling it anyway for some
reason, let's disable the LLVM backend at runtime by default. It can be
enabled with the environment variable R600_DEBUG=llvm.

Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c