From 41eb166233736d70296dd6976b50384d6b057a11 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Tue, 9 Jan 2018 14:22:04 -0800 Subject: [PATCH] minigbm: remove gma500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We don't support this driver anymore. BUG=none TEST=none Change-Id: Ib9f03a48e8825e3ac1f359e8fd75a68599790a14 Reviewed-on: https://chromium-review.googlesource.com/858169 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Gurchetan Singh Reviewed-by: Dominik Behr Reviewed-by: Stéphane Marchesin --- Android.mk | 2 -- drv.c | 2 -- gma500.c | 29 ----------------------------- 3 files changed, 33 deletions(-) delete mode 100644 gma500.c diff --git a/Android.mk b/Android.mk index bd9b9ae..a2558aa 100644 --- a/Android.mk +++ b/Android.mk @@ -1,4 +1,3 @@ -# Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -22,7 +21,6 @@ LOCAL_SRC_FILES := \ drv.c \ evdi.c \ exynos.c \ - gma500.c \ helpers.c \ i915.c \ marvell.c \ diff --git a/drv.c b/drv.c index 1f6fcab..7e12873 100644 --- a/drv.c +++ b/drv.c @@ -30,7 +30,6 @@ extern const struct backend backend_evdi; #ifdef DRV_EXYNOS extern const struct backend backend_exynos; #endif -extern const struct backend backend_gma500; #ifdef DRV_I915 extern const struct backend backend_i915; #endif @@ -78,7 +77,6 @@ static const struct backend *drv_get_backend(int fd) #ifdef DRV_EXYNOS &backend_exynos, #endif - &backend_gma500, #ifdef DRV_I915 &backend_i915, #endif diff --git a/gma500.c b/gma500.c deleted file mode 100644 index 366f232..0000000 --- a/gma500.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2014 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "drv_priv.h" -#include "helpers.h" -#include "util.h" - -static const uint32_t render_target_formats[] = { DRM_FORMAT_RGBX8888 }; - -static int gma500_init(struct driver *drv) -{ - drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats), - &LINEAR_METADATA, BO_USE_RENDER_MASK); - - return drv_modify_linear_combinations(drv); -} - -const struct backend backend_gma500 = { - .name = "gma500", - .init = gma500_init, - .bo_create = drv_dumb_bo_create, - .bo_destroy = drv_dumb_bo_destroy, - .bo_import = drv_prime_bo_import, - .bo_map = drv_dumb_bo_map, - .bo_unmap = drv_bo_munmap, -}; -- 2.11.0