Skip to content
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

Example irradiance_volumes crashing #12876

Closed
valaphee opened this issue Apr 4, 2024 · 1 comment · Fixed by #12845
Closed

Example irradiance_volumes crashing #12876

valaphee opened this issue Apr 4, 2024 · 1 comment · Fixed by #12845
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior O-Linux Specific to the Linux desktop operating system

Comments

@valaphee
Copy link
Contributor

valaphee commented Apr 4, 2024

Bevy version

latest commit on main 4da449344911f9eb83d393eb06ff1cb08f5d8035

[Optional] Relevant system information

SystemInfo { os: "Linux  Arch Linux", kernel: "6.8.2-arch2-1", cpu: "AMD Ryzen 9 3900X 12-Core Processor", core_count: "12", memory: "62.7 GiB" }

AdapterInfo { name: "AMD Radeon RX 6900 XT (RADV NAVI21)", vendor: 4098, device: 29631, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 24.0.4-arch1.2", backend: Vulkan }

What you did

Try running the irradiance_volumes example.

What went wrong

The window and something is visible for a short amount of time, but then terminates with:

wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `main_opaque_pass_3d_command_encoder`
    In a set_pipeline command
      note: render pipeline = `pbr_opaque_mesh_pipeline`
    Render pipeline targets are incompatible with render pass
    Incompatible sample count: the RenderPass uses textures with sample count 4 but the RenderPipeline uses attachments with format 8

Additional information

wgpu-info.json

@valaphee valaphee added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Apr 4, 2024
@valaphee valaphee changed the title Example irradiance_volumes not working Example irradiance_volumes crashing Apr 4, 2024
@mockersf
Copy link
Member

mockersf commented Apr 4, 2024

will be fixed by #12845

@SolarLiner SolarLiner added A-Rendering Drawing game state to the screen O-Linux Specific to the Linux desktop operating system and removed S-Needs-Triage This issue needs to be labelled labels Apr 5, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 5, 2024
# Objective

- #12791 broke example `irradiance_volumes`
- Fixes #12876 

```
wgpu error: Validation Error

Caused by:
    In Device::create_render_pipeline
      note: label = `pbr_opaque_mesh_pipeline`
    Color state [0] is invalid
    Sample count 8 is not supported by format Rgba8UnormSrgb on this device. The WebGPU spec guarentees [1, 4] samples are supported by this format. With the TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES feature your device supports [1, 2, 4].
```

## Solution

- Shift bits a bit more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior O-Linux Specific to the Linux desktop operating system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants