-
-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsupported features were requested: DEPTH24PLUS_STENCIL8 #8295
Comments
I wonder if this change was intentional, and if so, what the reason for it is. |
Oh wow that's definitely more changes than just a version bump. Yeah, I wonder what the reason for that is too. Let me see what happens if I just remove the DEPTH24PLUS_STENCIL8 feature... |
If I remove the feature, I get
|
Same here. It looks to me like this change was done assuming that this particular feature would always be available, even though it isn't. |
Looks like to me that wgpu 0.14 broke |
Well... I found a workaround that works on my system, which is to use |
git diff of workaround diff --git a/render/wgpu/src/backend.rs b/render/wgpu/src/backend.rs
index e9d6587cb..c847be8fa 100644
--- a/render/wgpu/src/backend.rs
+++ b/render/wgpu/src/backend.rs
@@ -591,7 +591,7 @@ async fn request_device(
.request_device(
&wgpu::DeviceDescriptor {
label: None,
- features: wgpu::Features::DEPTH24PLUS_STENCIL8,
+ features: wgpu::Features::DEPTH32FLOAT_STENCIL8,
limits,
},
trace_path,
diff --git a/render/wgpu/src/pipelines.rs b/render/wgpu/src/pipelines.rs
index 1dfab0519..040d965f4 100644
--- a/render/wgpu/src/pipelines.rs
+++ b/render/wgpu/src/pipelines.rs
@@ -232,7 +232,7 @@ fn create_shape_pipeline(
shader,
&pipeline_layout,
Some(wgpu::DepthStencilState {
- format: wgpu::TextureFormat::Depth24PlusStencil8,
+ format: wgpu::TextureFormat::Depth32FloatStencil8,
depth_write_enabled: false,
depth_compare: wgpu::CompareFunction::Always,
stencil: wgpu::StencilState {
diff --git a/render/wgpu/src/surface.rs b/render/wgpu/src/surface.rs
index 2d78fff67..6af6685d5 100644
--- a/render/wgpu/src/surface.rs
+++ b/render/wgpu/src/surface.rs
@@ -64,7 +64,7 @@ impl DepthTexture {
mip_level_count: 1,
sample_count: msaa_sample_count,
dimension: wgpu::TextureDimension::D2,
- format: wgpu::TextureFormat::Depth24PlusStencil8,
+ format: wgpu::TextureFormat::Depth32FloatStencil8,
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
});
|
Thanks! That works for me too. |
Credit to @crumblingstatue. Per `wgpu` documentation, the latter has wider support than the former. Fixes ruffle-rs#8295, ruffle-rs#8296.
Credit to @crumblingstatue. Per `wgpu` documentation, the latter has wider support than the former. Fixes #8295, #8296.
Describe the bug
Both the vulkan and gl backends error on startup with the following message:
GPU: RX 580, Mesa 22.2.1
Ruffle version: Ruffle 0.1.0-nightly (178bf4f 2022-10-14)
Expected behavior
The application should initialize the graphics backend correctly.
Affected platform
Desktop app
Operating system
Arch Linux
The text was updated successfully, but these errors were encountered: