Path: blob/21.2-virgl/src/gallium/auxiliary/nir/nir_to_tgsi_info.h
4561 views
/*1* Copyright 2019 Red Hat2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the "Software"),6* to deal in the Software without restriction, including without limitation7* on the rights to use, copy, modify, merge, publish, distribute, sub8* license, and/or sell copies of the Software, and to permit persons to whom9* the Software is furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice (including the next12* paragraph) shall be included in all copies or substantial portions of the13* Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL18* THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,19* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR20* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE21* USE OR OTHER DEALINGS IN THE SOFTWARE.22*/23#ifndef _NIR_TO_TGSI_INFO_H_24#define _NIR_TO_TGSI_INFO_H_2526#include <stdbool.h>27struct nir_shader;28struct tgsi_shader_info;2930/* only llvmpipe uses this path, so handle draw not using llvm */31#ifdef DRAW_LLVM_AVAILABLE32void nir_tgsi_scan_shader(const struct nir_shader *nir,33struct tgsi_shader_info *info,34bool need_texcoord);35#else36static inline void nir_tgsi_scan_shader(const struct nir_shader *nir,37struct tgsi_shader_info *info,38bool need_texcoord) {}39#endif4041#endif424344