From 7d85b542e84c331aafe7a52ac1f773a95a350ae5 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Mon, 22 Jan 2024 09:11:59 -0800 Subject: [PATCH] gfxstream: nuke VIRTIO_GPU flag It's always set. Reviewed-by: Aaron Ruby Acked-by: Yonggang Luo Acked-by: Adam Jackson Part-of: --- src/gfxstream/guest/platform/linux/LinuxVirtGpuDevice.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gfxstream/guest/platform/linux/LinuxVirtGpuDevice.cpp b/src/gfxstream/guest/platform/linux/LinuxVirtGpuDevice.cpp index a54abfcf51a..569e02e38b2 100644 --- a/src/gfxstream/guest/platform/linux/LinuxVirtGpuDevice.cpp +++ b/src/gfxstream/guest/platform/linux/LinuxVirtGpuDevice.cpp @@ -34,13 +34,6 @@ #define PARAM(x) \ (struct VirtGpuParam) { x, #x, 0 } -#if defined(PAGE_SIZE) && defined(VIRTIO_GPU) -constexpr size_t kPageSize = PAGE_SIZE; -#else -#include -static const size_t kPageSize = getpagesize(); -#endif - static inline uint32_t align_up(uint32_t n, uint32_t a) { return ((n + a - 1) / a) * a; } LinuxVirtGpuDevice::LinuxVirtGpuDevice(enum VirtGpuCapset capset, int fd) : VirtGpuDevice(capset) {