OSDN Git Service

minigbm: dri: Set the plane sizes on bo creation.
authorBas Nieuwenhuizen <basni@chromium.org>
Fri, 13 Mar 2020 10:21:34 +0000 (11:21 +0100)
committerCommit Bot <commit-bot@chromium.org>
Sat, 14 Mar 2020 03:32:21 +0000 (03:32 +0000)
commit912c4c33a9e5d14c6509e27a82961b52dc557112
treef6b8c43aeaaefee0cbde28edf32d8e546a42c810
parentcfcea2f16549205a2a7e626cc38e995acd54cbaa
minigbm: dri: Set the plane sizes on bo creation.

I cut a corner here on a previous patch and apparently it is used.

Since DRI does not give us useful horizontal & vertical strides
(especially considering things like auxiliary surfaces), do this
calculation based on offsets & buffer strides.

BUG=1061315
TEST=test_that graphics_Gbm on Zork.

Change-Id: Idbca7ce42f4f8a692129a2f8ab5d9c3ccd796496
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2100795
Tested-by: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Ilja H. Friedel <ihf@chromium.org>
dri.c