OSDN Git Service

Add tegra_bo_import to query tile format.
authorJoe Kniss <djmk@google.com>
Wed, 28 Jun 2017 21:06:24 +0000 (14:06 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 29 Jun 2017 17:37:40 +0000 (10:37 -0700)
commit5f61c792038b93f1215e3f5ae60deb4c6e600674
tree4ff3f2be83c58e00a44925e1360d93d9e2f0aecb
parentd6b8b03b915e8fbfa55750803523f6fae5b535f1
Add tegra_bo_import to query tile format.

When a buffer is imported, knowledge of tiling is needed for later calls
to map.  Add this functionality for tegra gpus.

The Tegra display engine only knows about 3 compression schemes, of
which we only use two (NV_MEM_KIND_C32_2CRA and NV_MEM_KIND_PITCH), these
are correlated to DRM_TEGRA_GEM_TILING_MODE_BLOCK and
DRM_TEGRA_GEM_TILING_MODE_PITCH respectively in the tegra drm driver.

BUG=chromium:653283, b:38152101
TEST=graphicsSanity on nyan_big

Change-Id: Ie28212494ad109bd8caa929a9271fc4c55c5c977
Reviewed-on: https://chromium-review.googlesource.com/553517
Commit-Ready: Joe Kniss <djmk@google.com>
Tested-by: Joe Kniss <djmk@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
tegra.c