mesa/src/compiler/clc/nir_clc_helpers.h
Dave Airlie bfe152916c nir: move the libclc lowering over to functions file.
This lowering is pretty generic, and I want to enhance it for
times when we don't want to inline.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24687>
2023-09-12 01:57:50 +00:00

31 lines
634 B
C

/*
* Copyright 2023 Intel Corporation
* SPDX-License-Identifier: MIT
*/
#ifndef MESA_NIR_CLC_H
#define MESA_NIR_CLC_H
#include "nir.h"
#ifdef __cplusplus
extern "C" {
#endif
struct disk_cache;
struct spirv_to_nir_options;
bool nir_can_find_libclc(unsigned ptr_bit_size);
nir_shader *
nir_load_libclc_shader(unsigned ptr_bit_size,
struct disk_cache *disk_cache,
const struct spirv_to_nir_options *spirv_options,
const nir_shader_compiler_options *nir_options,
bool optimize);
#ifdef __cplusplus
}
#endif
#endif /* MESA_NIR_CLC_H */