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

Validation error on MacOS, path_coarse_full #274

Closed
simbleau opened this issue Feb 5, 2023 · 2 comments
Closed

Validation error on MacOS, path_coarse_full #274

simbleau opened this issue Feb 5, 2023 · 2 comments

Comments

@simbleau
Copy link
Member

simbleau commented Feb 5, 2023

I think there's an issue here, just not really smart enough to track it down.

let old = atomicExchange(&tiles[tile_ix].segments, seg_ix);

2023-02-05T23:31:49.074966Z  INFO bevy_render::renderer: AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2023-02-05T23:31:49.196691Z ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default    
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_compute_pipeline
      note: label = `path_coarse_full`
    Internal error: Metal: program_source:243:14: warning: unused variable '_e43'
        uint _e43 = metal::atomic_fetch_or_explicit(&bump.failed, STAGE_PATH_COARSE, metal::memory_order_relaxed);
             ^
program_source:485:29: warning: unused variable '_e390'
                        int _e390 = uint(tile_ix) < 1 + (_buffer_sizes.size6 - 0 - 8) / 8 ? metal::atomic_fetch_add_explicit(&tiles[tile_ix].backdrop, backdrop, metal::memory_order_relaxed) : DefaultConstructible();
                            ^
program_source:538:70: error: cannot take the address of an rvalue of type 'metal::uint' (aka 'unsigned int')
                        uint _e461 = metal::atomic_exchange_explicit(&uint(tile_ix_1) < 1 + (_buffer_sizes.size6 - 0 - 8) / 8 ? tiles[tile_ix_1].segments : DefaultConstructible(), _e458, metal::memory_order_relaxed);
@raphlinus
Copy link
Contributor

Is this on most recent versions of everything? This looks a lot like gfx-rs/wgpu#3136 which was fixed by gfx-rs/naga#2099.

@simbleau
Copy link
Member Author

simbleau commented Feb 7, 2023

Upgraded versions and it is now fixes for native!

@simbleau simbleau closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants