Skip to content

Regression: 1x1 Bc7RgbaUnorm texture causes panic #21490

@DGriffin91

Description

@DGriffin91

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.

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<bevy_render::texture::gpu_image::GpuImage>`!

This is likely related to the below issues. But in 0.16 the bistro scene was able to run without crashing.
#13289
#11099

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions