mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 13:18:09 +02:00
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>
31 lines
634 B
C
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 */
|