Fix check for QUERY_SET_MAX_QUERIES was using >= instead of >
@@ -2270,7 +2270,7 @@ impl<A: HalApi> Device<A> {
return Err(Error::ZeroCount);
}
- if desc.count >= wgt::QUERY_SET_MAX_QUERIES {
+ if desc.count > wgt::QUERY_SET_MAX_QUERIES {
return Err(Error::TooManyQueries {
count: desc.count,
maximum: wgt::QUERY_SET_MAX_QUERIES,
