OSDN Git Service

i915: Add GBM_BO_USE_HW_VIDEO_DECODER use flag
authorKristian H. Kristensen <hoegsberg@chromium.org>
Wed, 4 Apr 2018 23:10:42 +0000 (16:10 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Sat, 19 May 2018 03:08:25 +0000 (20:08 -0700)
commit1bd7b04a3ae68c0314bdee06c559093de9e5a304
tree5cf290e5846a016efb0f79476ddc8db005650d95
parente430ac52794c8cfab586467d999336dd18b8a5c9
i915: Add GBM_BO_USE_HW_VIDEO_DECODER use flag

This flag is used to indicate that the platform video decoder will be
writing into this buffer and that it should be allocated
accordingly. On Intel, this means that we have to allocate y-tiled
NV12 for libva to be able to decode to the buffer.

We force gralloc NV12 allocations to be linear for now, since ARC++
doesn't properly pass modifiers to ChromeOS.

BUG=822346
TEST=test_that graphics_Gbm

Change-Id: I840c30d22355d26816df718b49717407e2e4620f
Reviewed-on: https://chromium-review.googlesource.com/996648
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
cros_gralloc/cros_gralloc_driver.cc
drv.h
gbm.h
gbm_helpers.c
i915.c