ANDROID: 16K: __PAGE_ALIGN() virtio gpu dumb buffers
Bug: 330556068
Test: cvd start \
--gpu_mode=guest_swiftshader \
--kernel_path=<path>out/virtual_device_x86_64/dist/bzImage \
--initramfs_path=<path>/out/virtual_device_x86_64/dist/initramfs.img \
--extra_kernel_cmdline="androidboot.page_shift=14"
Test: then open lens w/ camera
Change-Id: I616b249a2fe2385262d75901b352b1fda0abc5e4
Signed-off-by: Jason Macnak <natsu@google.com>
This commit is contained in:
committed by
Carlos Llamas
parent
1022438243
commit
68ba0f4dfb
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <drm/drm_file.h>
|
||||
#include <drm/drm_fourcc.h>
|
||||
#include <linux/page_size_compat.h>
|
||||
|
||||
#include "virtgpu_drv.h"
|
||||
|
||||
@@ -73,7 +74,7 @@ int virtio_gpu_mode_dumb_create(struct drm_file *file_priv,
|
||||
|
||||
pitch = args->width * 4;
|
||||
args->size = pitch * args->height;
|
||||
args->size = ALIGN(args->size, PAGE_SIZE);
|
||||
args->size = ALIGN(args->size, __PAGE_SIZE);
|
||||
|
||||
params.format = virtio_gpu_translate_format(DRM_FORMAT_HOST_XRGB8888);
|
||||
params.width = args->width;
|
||||
|
||||
Reference in New Issue
Block a user