Commit 9cfbc000 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋
Browse files

zink: more accurately check samplecount caps for shader images

lavapipe can only do up to 4bits, so this isn't just a binary check

Fixes: 0daa6155 ("zink: check if multisample support exists for shader image formats")
parent 743fce35
Pipeline #287203 waiting for manual action with stages
......@@ -825,7 +825,7 @@ zink_is_format_supported(struct pipe_screen *pscreen,
return false;
}
if (bind & PIPE_BIND_SHADER_IMAGE) {
if (!screen->info.feats.features.shaderStorageImageMultisample)
if (!(screen->info.props.limits.storageImageSampleCounts & sample_mask))
return false;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment