OSDN Git Service

minigbm: introduce test allocation
authorDavid Stevens <stevensd@chromium.org>
Wed, 25 Dec 2019 07:43:36 +0000 (16:43 +0900)
committerCommit Bot <commit-bot@chromium.org>
Thu, 5 Mar 2020 03:12:45 +0000 (03:12 +0000)
commitf0e607c7d436134b53fd45a4ead36d714451be8a
treee6609390ffa8ff9a7769dbb249a0eff4f913ce2b
parentafb2c56b57fe762c051fdc3804b6b75736b6ec91
minigbm: introduce test allocation

This change introduces a GBM_TEST_ALLOC flag to minigbm, which allows
for the creation of fake buffers that can be used to determine buffer
metadata without actually allocating a full buffer. The new flag is
supported by the i915 backends. This flag also alleviates the need to
cache buffers when virtio_gpu queries metadata properties.

BUG=b:145994510
TEST=play youtube with arcvm demo image plus this and virgl change

Change-Id: I9c6819aa3b5b674e4bb33b0656f2a9f155b0884e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1980688
Tested-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
drv.c
drv.h
drv_priv.h
gbm.h
i915.c