rusticl: add SPDX tags
Using MIT as mesa is MIT by default. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36856>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
mod context;
|
||||
mod device;
|
||||
mod event;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::*;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::IdpAccelProps;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::*;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use crate::api::context::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::event::create_and_queue;
|
||||
use crate::api::icd::*;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![allow(non_upper_case_globals)]
|
||||
|
||||
use crate::api::event::create_and_queue;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::CLResult;
|
||||
use crate::api::util::*;
|
||||
use crate::core::platform::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::*;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::event::create_and_queue;
|
||||
use crate::api::icd::*;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::CLResult;
|
||||
use crate::api::icd::ReferenceCountedAPIPointer;
|
||||
use crate::core::context::Context;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::{ArcedCLObject, CLResult};
|
||||
use crate::api::types::*;
|
||||
use crate::core::event::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub mod context;
|
||||
pub mod device;
|
||||
pub mod event;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::DeleteContextCB;
|
||||
use crate::api::util::bit_check;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::util::*;
|
||||
use crate::core::format::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::*;
|
||||
use crate::core::context::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use mesa_rust_gen::pipe_format;
|
||||
use rusticl_opencl_gen::*;
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2023 Antonio Gomes.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::*;
|
||||
use crate::core::context::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::core::device::*;
|
||||
use crate::core::event::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::*;
|
||||
use crate::api::util::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::CLResult;
|
||||
use crate::api::icd::DISPATCH;
|
||||
use crate::core::device::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::api::types::ProgramCB;
|
||||
use crate::core::context::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::icd::*;
|
||||
use crate::core::context::*;
|
||||
use crate::core::device::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::api::{icd::CLResult, types::CLVec};
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use rusticl_opencl_gen::*;
|
||||
|
||||
use std::convert::TryFrom;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![allow(clippy::collapsible_if)]
|
||||
#![allow(clippy::needless_range_loop)]
|
||||
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub mod clc;
|
||||
pub mod nir;
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub mod spirv;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::compiler::nir::*;
|
||||
use crate::pipe::screen::*;
|
||||
use crate::util::disk_cache::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
use mesa_rust_util::bitset;
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub mod compiler;
|
||||
pub mod pipe;
|
||||
pub mod util;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub mod context;
|
||||
pub mod device;
|
||||
pub mod fence;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::compiler::nir::*;
|
||||
use crate::pipe::fence::*;
|
||||
use crate::pipe::resource::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::pipe::screen::*;
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::pipe::{context::PipeContext, screen::*};
|
||||
|
||||
use libc_rust_gen::close;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2023 Dr. David Alan Gilbert.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::pipe::context::*;
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
use std::{
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::compiler::nir::NirShader;
|
||||
use crate::pipe::context::*;
|
||||
use crate::pipe::device::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::pipe::context::*;
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use mesa_rust_gen::util_get_cpu_caps;
|
||||
|
||||
pub mod disk_cache;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use libc_rust_gen::free;
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2025 Seán de Búrca.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
//! An abstraction of mesa's `util_queue` and related primitives for
|
||||
//! asynchronous, queue-based execution of arbitrary jobs.
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2024 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use std::{num::NonZeroU64, ops::DerefMut, pin::Pin};
|
||||
|
||||
use mesa_rust_gen::*;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2023 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
extern crate proc_macro;
|
||||
use proc_macro::Delimiter;
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2023 Antonio Gomes
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2023 Red Hat.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <clang/Basic/Version.h>
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
#include <llvm/IR/LLVMContext.h>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2020 Red Hat.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "rusticl_system_bindings.h"
|
||||
|
||||
#include "compiler/clc/nir_clc_helpers.h"
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2022 Red Hat.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "CL/cl.h"
|
||||
|
||||
#include "nir.h"
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2022 Red Hat.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "nir.h"
|
||||
|
||||
struct rusticl_lower_state {
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2020 Red Hat.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "CL/cl_icd.h"
|
||||
#include "GL/gl.h"
|
||||
#include "EGL/egl.h"
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2022 LingMan
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "rusticl_system_bindings.h"
|
||||
|
||||
#include "git_sha1.h"
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2022 LingMan.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! static_assert {
|
||||
($($tt:tt)*) => {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub fn test_bit(bitset: &[u32], bit: u32) -> bool {
|
||||
let idx = bit / 32;
|
||||
let test = bit % 32;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2025 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub trait TryFromWithErr<T, E>: Sized {
|
||||
fn try_from_with_err(value: T, error: E) -> Result<Self, E>;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Thomas Debesse.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! has_required_feature {
|
||||
($object:ident, $feature:ident) => {{
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pub mod assert;
|
||||
pub mod bitset;
|
||||
pub mod conversion;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use std::ops::Rem;
|
||||
|
||||
pub fn gcd<T>(mut a: T, mut b: T) -> T
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use crate::ptr::BetterPointer;
|
||||
|
||||
#[derive(Default)]
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use std::{
|
||||
alloc::Layout,
|
||||
collections::{
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2022 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
/// Casts a &[T] to a [&u8] without copying.
|
||||
/// Inspired by cast_slice from the bytemuck crate. Drop this copy once external crates are supported.
|
||||
///
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2020 Red Hat.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use std::ffi::CStr;
|
||||
use std::os::raw::c_char;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user