autocommit 2022-04-21 18:40:32 CEST
This commit is contained in:
parent
32fe8b64ca
commit
436f383cd6
3 changed files with 13 additions and 10 deletions
|
|
@ -9,9 +9,7 @@ use {
|
|||
buffd::{MsgParser, MsgParserError},
|
||||
errorfmt::ErrorFmt,
|
||||
},
|
||||
video::{
|
||||
dmabuf::{DmaBuf, DmaBufPlane},
|
||||
},
|
||||
video::dmabuf::{DmaBuf, DmaBufPlane},
|
||||
wire::{zwp_linux_buffer_params_v1::*, WlBufferId, ZwpLinuxBufferParamsV1Id},
|
||||
},
|
||||
ahash::AHashMap,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ use {
|
|||
},
|
||||
video::{dmabuf::DmaBuf, drm::Drm, gbm::GbmDevice, INVALID_MODIFIER, LINEAR_MODIFIER},
|
||||
},
|
||||
ahash::{AHashMap},
|
||||
ahash::AHashMap,
|
||||
std::{ptr, rc::Rc},
|
||||
};
|
||||
|
||||
|
|
@ -230,10 +230,13 @@ unsafe fn query_formats(dpy: EGLDisplay) -> Result<AHashMap<u32, EglFormat>, Ren
|
|||
let formats = formats();
|
||||
for fmt in vec {
|
||||
if let Some(format) = formats.get(&(fmt as u32)) {
|
||||
res.insert(format.drm, EglFormat {
|
||||
format: *format,
|
||||
modifiers: query_modifiers(dpy, fmt)?,
|
||||
});
|
||||
res.insert(
|
||||
format.drm,
|
||||
EglFormat {
|
||||
format: *format,
|
||||
modifiers: query_modifiers(dpy, fmt)?,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(res)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@ use {
|
|||
crate::{
|
||||
format::{Format, XRGB8888},
|
||||
render::{
|
||||
egl::{context::EglContext, display::EglDisplay},
|
||||
egl::{
|
||||
context::EglContext,
|
||||
display::{EglDisplay, EglFormat},
|
||||
},
|
||||
gl::{
|
||||
program::GlProgram, render_buffer::GlRenderBuffer, sys::GLint, texture::GlTexture,
|
||||
},
|
||||
|
|
@ -24,7 +27,6 @@ use {
|
|||
},
|
||||
uapi::ustr,
|
||||
};
|
||||
use crate::render::egl::display::EglFormat;
|
||||
|
||||
pub(super) struct TexProg {
|
||||
pub(super) prog: GlProgram,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue