Fix warnings in 32-bit builds

This commit is contained in:
Cameron Gutman 2023-10-12 19:05:52 -05:00
parent f07201baa9
commit 6eb5e07007
2 changed files with 4 additions and 4 deletions

View file

@ -254,7 +254,7 @@ ssize_t EglImageFactory::exportVAImages(AVFrame *frame, VADRMPRIMESurfaceDescrip
// Max 33 attributes (1 key + 1 value for each) // Max 33 attributes (1 key + 1 value for each)
const int EGL_ATTRIB_COUNT = 33 * 2; const int EGL_ATTRIB_COUNT = 33 * 2;
EGLAttrib attribs[EGL_ATTRIB_COUNT] = { EGLAttrib attribs[EGL_ATTRIB_COUNT] = {
EGL_LINUX_DRM_FOURCC_EXT, layer.drm_format, EGL_LINUX_DRM_FOURCC_EXT, (EGLAttrib)layer.drm_format,
EGL_WIDTH, i == 0 ? frame->width : frame->width / 2, EGL_WIDTH, i == 0 ? frame->width : frame->width / 2,
EGL_HEIGHT, i == 0 ? frame->height : frame->height / 2, EGL_HEIGHT, i == 0 ? frame->height : frame->height / 2,
EGL_IMAGE_PRESERVED_KHR, EGL_TRUE, EGL_IMAGE_PRESERVED_KHR, EGL_TRUE,

View file

@ -973,14 +973,14 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy,
} }
else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[0].drm_format, descriptor.objects[0].drm_format_modifier)) { else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[0].drm_format, descriptor.objects[0].drm_format_modifier)) {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Exporting separate layers due to lack of support for importing format and modifier: %08x %016lx", "Exporting separate layers due to lack of support for importing format and modifier: %08x %016" PRIx64,
descriptor.layers[0].drm_format, descriptor.layers[0].drm_format,
descriptor.objects[0].drm_format_modifier); descriptor.objects[0].drm_format_modifier);
m_EglExportType = EglExportType::Separate; m_EglExportType = EglExportType::Separate;
} }
else { else {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Exporting composed layers with format and modifier: %08x %016lx", "Exporting composed layers with format and modifier: %08x %016" PRIx64,
descriptor.layers[0].drm_format, descriptor.layers[0].drm_format,
descriptor.objects[0].drm_format_modifier); descriptor.objects[0].drm_format_modifier);
m_EglExportType = EglExportType::Composed; m_EglExportType = EglExportType::Composed;
@ -1002,7 +1002,7 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy,
else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[i].drm_format, else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[i].drm_format,
descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier)) { descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier)) {
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
"EGL implementation lacks support for importing format and modifier: %08x %016lx", "EGL implementation lacks support for importing format and modifier: %08x %016" PRIx64,
descriptor.layers[i].drm_format, descriptor.layers[i].drm_format,
descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier); descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier);
} }