summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-06 16:28:12 +0000
committerDylan Baker <[email protected]>2019-02-07 09:37:17 -0800
commitdbc43e389777cc80ad5846fc2a57408646859f13 (patch)
treeb1567ff9142023bfc3e51127368993262ebd0fc4 /src/gallium
parent262fd16b993de6a0248da0d69f14fefa732753d3 (diff)
xvmc: fix string comparison
Fixes: 6fca18696d0e6a243f6f "g3dvl: Update XvMC unit tests." Cc: Younes Manton <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> (cherry picked from commit 40b53a72033a601ab474c5f8e27eb5ca2c8bad6c)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/xvmc/tests/xvmc_bench.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
index 3cd23173c7c..dbd705639f6 100644
--- a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
+++ b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
@@ -123,11 +123,11 @@ void ParseArgs(int argc, char **argv, struct Config *config)
while (token && !fail)
{
- if (strcmp(token, "i"))
+ if (strcmp(token, "i") == 0)
config->mb_types |= MB_TYPE_I;
- else if (strcmp(token, "p"))
+ else if (strcmp(token, "p") == 0)
config->mb_types |= MB_TYPE_P;
- else if (strcmp(token, "b"))
+ else if (strcmp(token, "b") == 0)
config->mb_types |= MB_TYPE_B;
else
fail = 1;