1 /* 2 * Copyright 2024 Alyssa Rosenzweig 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #pragma once 7 8 #include <stdbool.h> 9 10 struct nir_shader; 11 struct nir_instr; 12 13 /* Texture backend flags */ 14 #define AGX_TEXTURE_FLAG_NO_CLAMP (1 << 0) 15 16 bool agx_nir_lower_texture_early(struct nir_shader *s, bool support_lod_bias); 17 bool agx_nir_lower_texture(struct nir_shader *s); 18 bool agx_nir_lower_multisampled_image_store(struct nir_shader *s); 19 bool agx_nir_needs_texture_crawl(struct nir_instr *instr); 20