gpu-video-encoder: VAAPI driver retry, Vello-capable device, Send
Three fixes found while running the zero-copy export on real Intel hardware: - vaapi::create_device() retries LIBVA_DRIVER_NAME in order iHD -> auto -> i965 -> radeonsi. libva was auto-selecting the legacy i965 driver, which fails on newer Intel GPUs; the modern iHD (intel-media-driver) is needed. encoder.rs now builds its hwdevice through this helper. - vk_device: request the adapter's full limits instead of downlevel_defaults. Vello's compute pipelines need max_storage_buffers_per_shader_stage >= 5 (downlevel caps at 4), which panicked Vello's shader init on the export device. This device only ever runs on a real VAAPI GPU. - ZeroCopyEncoder: unsafe impl Send. It owns its FFmpeg/Vulkan handles exclusively and is only moved (onto the export thread), never shared.
This commit is contained in:
@@ -131,7 +131,10 @@ unsafe fn create_inner() -> Result<DrmDevice, String> {
|
||||
&wgpu::DeviceDescriptor {
|
||||
label: Some("drm-import-device"),
|
||||
required_features: wgpu::Features::empty(),
|
||||
required_limits: wgpu::Limits::downlevel_defaults(),
|
||||
// Vello's compute pipelines need more than downlevel limits (e.g.
|
||||
// max_storage_buffers_per_shader_stage >= 5). This device only ever runs on a
|
||||
// real VAAPI-capable GPU, so request the adapter's full limits.
|
||||
required_limits: wgpu_adapter.limits(),
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user