nv50/ir: don't assert on type in Modifier.applyTo if it is 0
[mesa.git] / src / gallium / drivers / r600 / r600_isa.c
index 20b17594f49616da04875adc24e3a54d22c8af3d..54cdfff8bbd999327ed66b749eb42ae091d018c4 100644 (file)
@@ -37,7 +37,7 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) {
 #if defined R600_USE_LLVM || defined HAVE_OPENCL
        unsigned i, use_llvm;
 
-       use_llvm = debug_get_bool_option("R600_LLVM", TRUE);
+       use_llvm = !(ctx->screen->debug_flags & DBG_NO_LLVM);
 
        if (!use_llvm)
                return 0;