mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 22:30:11 +01:00
rusticl: drop global allow statements
Just to stay consistent. We might want to use them instead of declaring them inside meson, but I'd rather prefer we have a consistent list across all crates and that's easier done in meson. Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188>
This commit is contained in:
parent
af269d3394
commit
06776969d6
4 changed files with 8 additions and 10 deletions
|
|
@ -501,6 +501,7 @@ impl DeviceBase {
|
|||
let exts: Vec<&str> = self.extension_string.split(' ').collect();
|
||||
let mut res = CLVersion::Cl3_0;
|
||||
|
||||
#[allow(clippy::collapsible_if)]
|
||||
if self.embedded {
|
||||
if self.caps.has_images {
|
||||
let supports_array_writes = !FORMATS
|
||||
|
|
|
|||
|
|
@ -1073,6 +1073,7 @@ fn compile_nir_variant(
|
|||
nir.print();
|
||||
}
|
||||
|
||||
#[allow(clippy::collapsible_if)]
|
||||
if dev.screen.finalize_nir(nir) {
|
||||
if Platform::dbg().nir {
|
||||
eprintln!(
|
||||
|
|
|
|||
|
|
@ -957,13 +957,12 @@ fn create_build_closure(
|
|||
|
||||
let device_build = build_info.dev_build_mut(device);
|
||||
// skip compilation if we already have the right thing.
|
||||
if program.is_bin() {
|
||||
if device_build.bin_type == CL_PROGRAM_BINARY_TYPE_EXECUTABLE && !is_lib
|
||||
|| device_build.bin_type == CL_PROGRAM_BINARY_TYPE_LIBRARY && is_lib
|
||||
{
|
||||
device_build.status = CL_BUILD_SUCCESS as cl_build_status;
|
||||
continue;
|
||||
}
|
||||
if program.is_bin()
|
||||
&& (device_build.bin_type == CL_PROGRAM_BINARY_TYPE_EXECUTABLE && !is_lib
|
||||
|| device_build.bin_type == CL_PROGRAM_BINARY_TYPE_LIBRARY && is_lib)
|
||||
{
|
||||
device_build.status = CL_BUILD_SUCCESS as cl_build_status;
|
||||
continue;
|
||||
}
|
||||
|
||||
let spirv = device_build.spirv.take().unwrap();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![allow(clippy::collapsible_if)]
|
||||
#![allow(clippy::needless_range_loop)]
|
||||
|
||||
mod api;
|
||||
pub mod core;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue