projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f767ee5
)
llvmpipe: Add a negation test to lp_test_arit.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 17 Feb 2012 15:57:54 +0000
(15:57 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 17 Feb 2012 15:57:54 +0000
(15:57 +0000)
src/gallium/drivers/llvmpipe/lp_test_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_test_arit.c
b/src/gallium/drivers/llvmpipe/lp_test_arit.c
index 0b74dee176f8b0fa491baa619bf16518b97c0070..8b23baaa279d7904f46df85ae70a1fe729caed92 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_test_arit.c
+++ b/
src/gallium/drivers/llvmpipe/lp_test_arit.c
@@
-83,6
+83,12
@@
struct unary_test_t
};
+static float negf(float x)
+{
+ return -x;
+}
+
+
const float exp2_values[] = {
-60,
-4,
@@
-162,6
+168,7
@@
const float sincos_values[] = {
*/
static const struct unary_test_t unary_tests[] = {
+ {"neg", &lp_build_negate, &negf, exp2_values, Elements(exp2_values)},
{"exp2", &lp_build_exp2, &exp2f, exp2_values, Elements(exp2_values)},
{"log2", &lp_build_log2, &log2f, log2_values, Elements(log2_values)},
{"exp", &lp_build_exp, &expf, exp2_values, Elements(exp2_values)},