Path: blob/21.2-virgl/src/gallium/drivers/d3d12/d3d12_nir_passes.h
4570 views
/*1* Copyright © Microsoft Corporation2*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* on the rights to use, copy, modify, merge, publish, distribute, sub7* license, and/or sell copies of the Software, and to permit persons to whom8* the Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice (including the next11* paragraph) shall be included in all copies or substantial portions of the12* Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL17* THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,18* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR19* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE20* USE OR OTHER DEALINGS IN THE SOFTWARE.21*/2223#ifndef D3D12_NIR_PASSES_H24#define D3D12_NIR_PASSES_H2526#include "nir.h"2728#ifdef __cplusplus29extern "C" {30#endif3132struct d3d12_shader;3334bool35d3d12_lower_point_sprite(nir_shader *shader,36bool sprite_origin_lower_left,37bool point_size_per_vertex,38unsigned point_coord_enable,39uint64_t next_inputs_read);4041bool42d3d12_lower_state_vars(struct nir_shader *s, struct d3d12_shader *shader);4344void45d3d12_lower_yflip(nir_shader *s);4647void48d3d12_forward_front_face(nir_shader *nir);4950void51d3d12_lower_depth_range(nir_shader *nir);5253bool54d3d12_lower_load_first_vertex(nir_shader *nir);5556bool57d3d12_lower_bool_input(struct nir_shader *s);5859void60d3d12_lower_uint_cast(nir_shader *nir, bool is_signed);6162void63d3d12_add_missing_dual_src_target(struct nir_shader *s,64unsigned missing_mask);6566bool67d3d12_fix_io_uint_type(struct nir_shader *s, uint64_t in_mask, uint64_t out_mask);6869void70d3d12_nir_invert_depth(nir_shader *s);7172bool73d3d12_lower_int_cubmap_to_array(nir_shader *s);7475bool76nir_lower_packed_ubo_loads(struct nir_shader *nir);7778bool79d3d12_nir_lower_vs_vertex_conversion(nir_shader *s, enum pipe_format target_formats[]);8081void82d3d12_lower_primitive_id(nir_shader *shader);8384void85d3d12_lower_triangle_strip(nir_shader *shader);8687#ifdef __cplusplus88}89#endif9091#endif // D3D12_NIR_PASSES_H929394