projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
radeonsi: remove unused variable si_state_dsa::db_render_control
[mesa.git]
/
src
/
gallium
/
drivers
/
llvmpipe
/
lp_test_main.c
diff --git
a/src/gallium/drivers/llvmpipe/lp_test_main.c
b/src/gallium/drivers/llvmpipe/lp_test_main.c
index 7a0d06ae2c8cd1a45fbf748e17b9e915d34d7b9b..c7b6d65fa303009abd7f0678363d6604d5215503 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_test_main.c
+++ b/
src/gallium/drivers/llvmpipe/lp_test_main.c
@@
-35,24
+35,14
@@
#include "util/u_cpu_detect.h"
#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_const.h"
#include "gallivm/lp_bld_init.h"
+#include "gallivm/lp_bld_debug.h"
#include "lp_test.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)
void
dump_type(FILE *fp,
struct lp_type type)
@@
-380,6
+370,14
@@
int main(int argc, char **argv)
unsigned i;
boolean success;
boolean single = FALSE;
unsigned i;
boolean success;
boolean single = FALSE;
+ unsigned fpstate;
+
+ util_cpu_detect();
+ fpstate = util_fpstate_get();
+ util_fpstate_set_denorms_to_zero(fpstate);
+
+ if (!lp_build_init())
+ return 1;
for(i = 1; i < argc; ++i) {
if(strcmp(argv[i], "-v") == 0)
for(i = 1; i < argc; ++i) {
if(strcmp(argv[i], "-v") == 0)
@@
-392,7
+390,12
@@
int main(int argc, char **argv)
n = atoi(argv[i]);
}
n = atoi(argv[i]);
}
- lp_build_init();
+#ifdef DEBUG
+ if (verbose >= 2) {
+ gallivm_debug |= GALLIVM_DEBUG_IR;
+ gallivm_debug |= GALLIVM_DEBUG_ASM;
+ }
+#endif
util_cpu_detect();
util_cpu_detect();