Lines Matching refs:drmFormat

78 std::optional<uint32_t> DrmToAhbFormat(uint32_t drmFormat) {  in DrmToAhbFormat()  argument
79 switch (drmFormat) { in DrmToAhbFormat()
104 std::optional<uint32_t> DrmToBpp(uint32_t drmFormat) { in DrmToBpp() argument
105 switch (drmFormat) { in DrmToBpp()
121 std::optional<uint32_t> DrmToVirglFormat(uint32_t drmFormat) { in DrmToVirglFormat() argument
122 switch (drmFormat) { in DrmToVirglFormat()
141 uint32_t drmFormat, VirtGpuResourcePtr resource) in EmulatedAHardwareBuffer() argument
142 : mRefCount(1), mWidth(width), mHeight(height), mDrmFormat(drmFormat), mResource(resource) {} in EmulatedAHardwareBuffer()
214 auto drmFormat = GlFormatToDrmFormat(glFormat); in createColorBuffer() local
215 if (!drmFormat) { in createColorBuffer()
219 auto ahb = allocate(width, height, *drmFormat); in createColorBuffer()
232 auto drmFormat = AhbToDrmFormat(ahbFormat); in allocate() local
233 if (!drmFormat) { in allocate()
238 *outputAhb = allocate(width, height, *drmFormat); in allocate()
246 AHardwareBuffer* EmulatedGralloc::allocate(uint32_t width, uint32_t height, uint32_t drmFormat) { in allocate() argument
247 ALOGE("Allocating AHB w:%u, h:%u, format %u", width, height, drmFormat); in allocate()
255 auto virglFormat = DrmToVirglFormat(drmFormat); in allocate()
257 ALOGE("Failed to allocate: Unhandled DRM format:%u to Virgl format conversion.", drmFormat); in allocate()
261 auto bpp = DrmToBpp(drmFormat); in allocate()
263 ALOGE("Failed to allocate: Unhandled DRM format:%u to bpp conversion.", drmFormat); in allocate()
268 (drmFormat == DRM_FORMAT_R8_BLOB) ? VIRGL_BIND_LINEAR : VIRGL_BIND_RENDER_TARGET; in allocate()
281 new EmulatedAHardwareBuffer(width, height, drmFormat, std::move(resource))); in allocate()