summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-04-13 13:29:12 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-04-14 07:19:04 +0100
commit9ae0e8ee3cf5e422804dcecd248dc28bb5dc63dc (patch)
treec9df6e2a27d3809e4d74ce1fd8e73ce5fbd13745 /src/gallium
parentf8a51034bded97c9ccf483dd51e7acda373fe1d1 (diff)
downloadexternal_mesa3d-9ae0e8ee3cf5e422804dcecd248dc28bb5dc63dc.zip
external_mesa3d-9ae0e8ee3cf5e422804dcecd248dc28bb5dc63dc.tar.gz
external_mesa3d-9ae0e8ee3cf5e422804dcecd248dc28bb5dc63dc.tar.bz2
test/unit: Make translate_test invoke translate_create by default.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/tests/unit/translate_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/tests/unit/translate_test.c b/src/gallium/tests/unit/translate_test.c
index fc49862..7ca6067 100644
--- 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;
}