Path: blob/21.2-virgl/src/gallium/auxiliary/nir/nir_draw_helpers.h
4561 views
/**************************************************************************1*2* Copyright 2019 Red Hat.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the "Software"),7* to deal in the Software without restriction, including without limitation8* the rights to use, copy, modify, merge, publish, distribute, sublicense,9* and/or sell copies of the Software, and to permit persons to whom the10* Software is furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice shall be included13* in all copies or substantial portions of the Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS16* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL18* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER19* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,20* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE21* SOFTWARE.22*23**************************************************************************/2425#ifndef NIR_DRAW_HELPERS_H26#define NIR_DRAW_HELPERS_H2728#ifdef __cplusplus29extern "C" {30#endif3132struct nir_shader;33void34nir_lower_pstipple_fs(struct nir_shader *shader,35unsigned *samplerUnitOut,36unsigned fixedUnit,37bool fs_pos_is_sysval);3839void40nir_lower_aaline_fs(struct nir_shader *shader, int *varying);4142void43nir_lower_aapoint_fs(struct nir_shader *shader, int *varying);4445#ifdef __cplusplus46}47#endif4849#endif505152