projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a5103
)
test/unit: Make translate_test invoke translate_create by default.
author
Jose Fonseca
<jfonseca@vmware.com>
Wed, 13 Apr 2016 12:29:12 +0000
(13:29 +0100)
committer
Jose Fonseca
<jfonseca@vmware.com>
Thu, 14 Apr 2016 06:19:04 +0000
(07:19 +0100)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/tests/unit/translate_test.c
patch
|
blob
|
history
diff --git
a/src/gallium/tests/unit/translate_test.c
b/src/gallium/tests/unit/translate_test.c
index fc49862c2caf390b95d97061a451b85cb87e68a8..7ca606750a964099f4dc45dc777bb740b9a9dbab 100644
(file)
--- a/
src/gallium/tests/unit/translate_test.c
+++ b/
src/gallium/tests/unit/translate_test.c
@@
-70,8
+70,9
@@
int main(int argc, char** argv)
util_cpu_detect();
- if(argc <= 1)
- {}
+ if (argc <= 1 ||
+ !strcmp(argv[1], "default") )
+ create_fn = translate_create;
else if (!strcmp(argv[1], "generic"))
create_fn = translate_generic_create;
else if (!strcmp(argv[1], "x86"))
@@
-129,7
+130,7
@@
int main(int argc, char** argv)
if (!create_fn)
{
- printf("Usage: ./translate_test [generic|x86|nosse|sse|sse2|sse3|sse4.1]\n");
+ printf("Usage: ./translate_test [
default|
generic|x86|nosse|sse|sse2|sse3|sse4.1]\n");
return 2;
}