aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-06 16:28:12 +0000
committerChristian König <[email protected]>2019-02-06 18:15:43 +0000
commit40b53a72033a601ab474c5f8e27eb5ca2c8bad6c (patch)
tree99fe7190cba77d25fb29d2de628bf7a000c9703c /src/gallium/state_trackers
parent110a6e1839bcf31e3592389ad55a7ba07b551965 (diff)
xvmc: fix string comparison
Fixes: 6fca18696d0e6a243f6f "g3dvl: Update XvMC unit tests." Cc: Younes Manton <[email protected]> Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-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;