fix(wayland): update bevy-dmabuf and tell it to use srgb formats

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-07-17 17:13:20 +02:00
parent 66a3ae22cc
commit 4426d14bc5
3 changed files with 5 additions and 3 deletions

6
Cargo.lock generated
View File

@@ -592,7 +592,7 @@ dependencies = [
[[package]]
name = "bevy-dmabuf"
version = "0.2.0"
source = "git+https://github.com/Schmarni-Dev/bevy-dmabuf#c9f2ebc100f1c9ef74383d35bcdc6c36920d2741"
source = "git+https://github.com/Schmarni-Dev/bevy-dmabuf#a6825f60623b6a7a2c9038b01a9f2f9fa1e365a9"
dependencies = [
"ash",
"bevy",
@@ -4032,7 +4032,7 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
dependencies = [
"proc-macro-crate 3.3.0",
"proc-macro-crate 1.3.1",
"proc-macro2",
"quote",
"syn 2.0.104",
@@ -6717,7 +6717,7 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
dependencies = [
"windows-sys 0.59.0",
"windows-sys 0.48.0",
]
[[package]]

View File

@@ -155,6 +155,7 @@ impl ShmBufferBacking {
},
format: vk_format_to_drm_fourcc(vk_format.into()).unwrap() as u32,
flip_y: false,
srgb: true,
};
let imported_texture = import_texture(bevy_render_dev, dmatex, DropCallback(None)).unwrap();

View File

@@ -60,6 +60,7 @@ impl DmabufBacking {
format: format as u32,
// TODO: impl this in bevy-dmabuf
flip_y: flags.contains(Flags::YInvert),
srgb: true,
};
let dev = RENDER_DEVICE.wait();
let imported_tex = import_texture(dev, dmatex, DropCallback(None))?;