Regression: 1x1 Bc7RgbaUnorm texture causes panic
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version 0.17.2
Bistro uses non-block aligned compressed textures. In bevy 0.16 this did not create a panic, but in 0.17 it does.
To reproduce run https://github.com/DGriffin91/bevy_bistro_scene with the `--convert` option. Or use compressed textures from this [discord post](https://discord.com/channels/691052431525675048/1237853896471220314/1237859248067575910).
```
ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (22)' (580312) panicked at \.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-26.0.1\src\backend\wgpu_core.rs:1454:26:
wgpu error: Validation Error
Caused by:
In Device::create_texture
Width 1 is not a multiple of Bc7RgbaUnorm's block width (4)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::render_asset::prepare_assets`!
```
This is likely related to the below issues. But in 0.16 the bistro scene was able to run without crashing.
https://github.com/bevyengine/bevy/issues/13289
https://github.com/bevyengine/bevy/issues/11099
Contributor guide
Assessment
This issue has not been assessed yet.