Path: blob/21.2-virgl/src/gallium/frontends/clover/nir/invocation.hpp
4573 views
//1// Copyright 2019 Karol Herbst2//3// Permission is hereby granted, free of charge, to any person obtaining a4// copy of this software and associated documentation files (the "Software"),5// to deal in the Software without restriction, including without limitation6// the rights to use, copy, modify, merge, publish, distribute, sublicense,7// and/or sell copies of the Software, and to permit persons to whom the8// Software is furnished to do so, subject to the following conditions:9//10// The above copyright notice and this permission notice shall be included in11// all copies or substantial portions of the Software.12//13// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR17// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19// OTHER DEALINGS IN THE SOFTWARE.20//2122#ifndef CLOVER_NIR_INVOCATION_HPP23#define CLOVER_NIR_INVOCATION_HPP2425#include "core/module.hpp"26#include <util/disk_cache.h>2728struct nir_shader;2930namespace clover {31class device;32namespace nir {33void check_for_libclc(const device &dev);3435// converts libclc spirv into nir36nir_shader *load_libclc_nir(const device &dev, std::string &r_log);3738struct disk_cache *create_clc_disk_cache(void);3940// converts a given spirv module to nir41module spirv_to_nir(const module &mod, const device &dev, std::string &r_log);42}43}4445#endif464748