diff options
Diffstat (limited to 'tests/exynos/exynos_fimg2d_perf.c')
-rw-r--r-- | tests/exynos/exynos_fimg2d_perf.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/exynos/exynos_fimg2d_perf.c b/tests/exynos/exynos_fimg2d_perf.c index 1699bba7..97691a71 100644 --- a/tests/exynos/exynos_fimg2d_perf.c +++ b/tests/exynos/exynos_fimg2d_perf.c | |||
@@ -1,17 +1,24 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2015 - Tobias Jakobi | 2 | * Copyright (C) 2015 - Tobias Jakobi |
3 | * | 3 | * |
4 | * This is free software: you can redistribute it and/or modify | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * it under the terms of the GNU General Public License as published | 5 | * copy of this software and associated documentation files (the "Software"), |
6 | * by the Free Software Foundation, either version 2 of the License, | 6 | * to deal in the Software without restriction, including without limitation |
7 | * or (at your option) any later version. | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
8 | * | 10 | * |
9 | * It is distributed in the hope that it will be useful, but | 11 | * The above copyright notice and this permission notice (including the next |
10 | * WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * paragraph) shall be included in all copies or substantial portions of the |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * Software. |
12 | * GNU General Public License for more details. | 14 | * |
13 | * You should have received a copy of the GNU General Public License | 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
14 | * along with it. If not, see <http://www.gnu.org/licenses/>. | 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
18 | * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
19 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
20 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
21 | * OTHER DEALINGS IN THE SOFTWARE. | ||
15 | */ | 22 | */ |
16 | 23 | ||
17 | #include <stdlib.h> | 24 | #include <stdlib.h> |
@@ -267,13 +274,6 @@ int main(int argc, char **argv) | |||
267 | goto out; | 274 | goto out; |
268 | } | 275 | } |
269 | 276 | ||
270 | if (bufw == 0 || bufh == 0) { | ||
271 | fprintf(stderr, "error: buffer width/height should be non-zero.\n"); | ||
272 | ret = -1; | ||
273 | |||
274 | goto out; | ||
275 | } | ||
276 | |||
277 | fd = drmOpen("exynos", NULL); | 277 | fd = drmOpen("exynos", NULL); |
278 | if (fd < 0) { | 278 | if (fd < 0) { |
279 | fprintf(stderr, "error: failed to open drm\n"); | 279 | fprintf(stderr, "error: failed to open drm\n"); |