mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
G3: GL adapters pass the WebGL2-limits decline test (FreeBSD CI)
On FreeBSD the only adapter is llvmpipe over GL, which GpuContext::new declines for its backend before checking limits; accept either reason. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d60cb71e29
commit
254192be57
1 file changed
+2
-1
@@ -688,7 +688,8 @@ fn devices_with_webgl2_limits_are_declined() {
|
||||
let desc = wgpu::DeviceDescriptor { required_limits: wgpu::Limits::downlevel_webgl2_defaults(), ..Default::default() };
|
||||
let Ok((device, queue)) = pollster::block_on(adapter.request_device(&desc)) else { return };
|
||||
let err = crate::context::GpuContext::new(&adapter, device, queue).err().expect("declined");
|
||||
assert!(err.contains("max_storage_buffers_per_shader_stage"), "{err}");
|
||||
// A GL adapter (FreeBSD's llvmpipe) is declined for its backend before its limits are checked.
|
||||
assert!(err.contains("max_storage_buffers_per_shader_stage") || err.contains("(Gl)"), "{err}");
|
||||
}
|
||||
|
||||
/// GPU work inside the video memory guard returns its result when the device has room (#106).
|
||||
|
||||
Reference in new issue
Block a user