• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoapythonrubywindowsphpgameguibathyscaphec翻訳omegatframework計画中(planning stage)twitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

external/gbm_gralloc


Commit MetaInfo

Revision7bd5d5fcc10422c1be90dd222a24dde586108ca7 (tree)
Time2020-08-14 00:25:14
AuthorRoman Stratiienko <r.stratiienko@gmai...>
CommiterRob Herring

Log Message

Support getting offsets via lock_ycbcr()

When no software access usage flag specified,
.lock_ycbcr() should return NULL pointer based plane addresses,
which mesa3d interprets as offsets.

Fixes 13c5034a859b ("gralloc_gbm: add .lock_ycbcr to support video playback use case")
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>

Change Summary

Incremental Difference

--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -491,7 +491,7 @@ int gralloc_gbm_bo_lock_ycbcr(buffer_handle_t handle,
491491 {
492492 struct gralloc_handle_t *hnd = gralloc_handle(handle);
493493 int ystride, cstride;
494- void *addr;
494+ void *addr = 0;
495495 int err;
496496
497497 ALOGD("handle %p, hnd %p, usage 0x%x", handle, hnd, usage);