cros_gralloc: Fix PlaneLayout width/height metadata
... by using the horizontal/vertical subsampling of each plane. BUG=b:171019648 TEST=vts -m VtsHalGraphicsMapperV4_0TargetTest Change-Id: I3eccfa1c0ac30394314c83b54ca50d690c679724 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2503481 Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Jason Macnak <natsu@google.com> Auto-Submit: Jason Macnak <natsu@google.com> Commit-Queue: Jason Macnak <natsu@google.com>
This commit is contained in:
parent
dfb45b0b5c
commit
16be5a74aa
1 changed files with 2 additions and 2 deletions
|
|
@ -504,8 +504,8 @@ Return<void> CrosGralloc4Mapper::get(cros_gralloc_handle_t crosHandle,
|
|||
planeLayout.offsetInBytes = crosHandle->offsets[plane];
|
||||
planeLayout.strideInBytes = crosHandle->strides[plane];
|
||||
planeLayout.totalSizeInBytes = crosHandle->sizes[plane];
|
||||
planeLayout.widthInSamples = crosHandle->width;
|
||||
planeLayout.heightInSamples = crosHandle->height;
|
||||
planeLayout.widthInSamples = crosHandle->width / planeLayout.horizontalSubsampling;
|
||||
planeLayout.heightInSamples = crosHandle->height / planeLayout.verticalSubsampling;
|
||||
}
|
||||
|
||||
status = android::gralloc4::encodePlaneLayouts(planeLayouts, &encodedMetadata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue