nv50,nvc0: fix 2d engine stencil-only copies
[mesa.git] / src / gallium / drivers / llvmpipe / lp_test_main.c
index 7a0d06ae2c8cd1a45fbf748e17b9e915d34d7b9b..4c6109231464bbbf1aa16109d732a5b9c4337d81 100644 (file)
 
 
 #include "util/u_cpu_detect.h"
+#include "util/u_math.h"
 
 #include "gallivm/lp_bld_const.h"
 #include "gallivm/lp_bld_init.h"
+#include "gallivm/lp_bld_debug.h"
 #include "lp_test.h"
 
 
-#ifdef PIPE_CC_MSVC
-static INLINE double
-round(double x)
-{
-   if (x >= 0.0)
-      return floor(x + 0.5);
-   else
-      return ceil(x - 0.5);
-}
-#endif
-
-
 void
 dump_type(FILE *fp,
           struct lp_type type)
@@ -394,6 +384,13 @@ int main(int argc, char **argv)
 
    lp_build_init();
 
+#ifdef DEBUG
+   if (verbose >= 2) {
+      gallivm_debug |= GALLIVM_DEBUG_IR;
+      gallivm_debug |= GALLIVM_DEBUG_ASM;
+   }
+#endif
+
    util_cpu_detect();
 
    if(fp) {