treewide: Replace the include of nir_types.h with glsl_types.h

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26753>
This commit is contained in:
Yonggang Luo 2023-10-25 15:23:06 +08:00 committed by Marge Bot
parent 2e75d71c1f
commit 0210b554d6
20 changed files with 14 additions and 56 deletions

View file

@ -7,7 +7,7 @@
#include "agx_compile.h"
#include "compiler/nir/nir_builder.h"
#include "compiler/nir_types.h"
#include "glsl_types.h"
#include "util/glheader.h"
#include "util/macros.h"
#include "util/u_debug.h"

View file

@ -24,7 +24,6 @@
#include "nir/nir.h"
#include "nir/nir_serialize.h"
#include "glsl_types.h"
#include "nir_types.h"
#include "clc.h"
#include "clc_helpers.h"
#include "nir_clc_helpers.h"

View file

@ -24,7 +24,7 @@
#ifndef MESA_CLC_HELPERS_H
#define MESA_CLC_HELPERS_H
#include "nir_types.h"
#include "glsl_types.h"
#include "clc.h"
#include "util/u_string.h"

View file

@ -62,8 +62,8 @@
#include "nir.h"
#include "nir_builder.h"
#include "nir_deref.h"
#include "nir_types.h"
#include "gl_nir.h"
#include "glsl_types.h"
#include "main/shader_types.h"

View file

@ -45,11 +45,10 @@
#include "gl_nir_link_varyings.h"
#include "gl_nir_linker.h"
#include "glsl_types.h"
#include "linker_util.h"
#include "nir_builder.h"
#include "nir_types.h"
#include "compiler/glsl_types.h"
#include "main/consts_exts.h"
#include "main/shader_types.h"
#include "util/u_string.h"

View file

@ -45,7 +45,6 @@ astc_decoder_glsl_file = files('glsl/astc_decoder.glsl')
files_libcompiler = files(
'glsl_types.c',
'glsl_types.h',
'nir_types.h',
'shader_enums.c',
'shader_enums.h',
'shader_info.h',

View file

@ -28,8 +28,8 @@
#ifndef NIR_H
#define NIR_H
#include "compiler/glsl_types.h"
#include "compiler/glsl/list.h"
#include "compiler/nir_types.h"
#include "compiler/shader_enums.h"
#include "compiler/shader_info.h"
#include "util/bitscan.h"

View file

@ -21,7 +21,7 @@
* IN THE SOFTWARE.
*/
#include "compiler/nir_types.h"
#include "compiler/glsl_types.h"
#include "nir.h"
#include "nir_builder.h"
#include "nir_deref.h"

View file

@ -1,36 +0,0 @@
/*
* Copyright © 2014 Connor Abbott
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* Authors:
* Connor Abbott (cwabbott0@gmail.com)
*
*/
#ifndef NIR_TYPES_H
#define NIR_TYPES_H
#include <stdio.h>
#include <stdbool.h>
#include "glsl_types.h"
#endif /* NIR_TYPES_H */

View file

@ -5,7 +5,6 @@
#include "glsl_types.h"
#include "nir.h"
#include "nir_types.h"
#include "vtn_private.h"
static enum glsl_cmat_use

View file

@ -46,10 +46,10 @@
#include "main/mtypes.h"
#include "compiler/glsl_types.h"
#include "compiler/glsl/gl_nir.h"
#include "compiler/glsl/glsl_to_nir.h"
#include "compiler/glsl/standalone.h"
#include "compiler/nir_types.h"
#include "compiler/spirv/nir_spirv.h"
#include "pipe/p_context.h"

View file

@ -28,10 +28,10 @@
#include "main/mtypes.h"
#include "compiler/glsl_types.h"
#include "compiler/glsl/standalone.h"
#include "compiler/glsl/glsl_to_nir.h"
#include "compiler/glsl/gl_nir.h"
#include "compiler/nir_types.h"
#include "lima_context.h"
#include "lima_program.h"

View file

@ -31,9 +31,9 @@
#include "util/ralloc.h"
#include "util/hash_table.h"
#include "tgsi/tgsi_dump.h"
#include "compiler/glsl_types.h"
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "compiler/nir_types.h"
#include "nir/tgsi_to_nir.h"
#include "vc4_context.h"
#include "vc4_qpu.h"

View file

@ -5,8 +5,8 @@
#include "compiler/clc/clc.h"
#include "compiler/clc/clc_helpers.h"
#include "compiler/shader_enums.h"
#include "glsl_types.h"
#include "nir_serialize.h"
#include "nir_types.h"
#include "spirv/nir_spirv.h"
#include "pipe/p_context.h"

View file

@ -25,7 +25,6 @@
#include "nir_clc_helpers.h"
#include "nir_serialize.h"
#include "glsl_types.h"
#include "nir_types.h"
#include "clc_compiler.h"
#include "clc_helpers.h"
#include "clc_nir.h"

View file

@ -24,7 +24,6 @@
#include "util/u_math.h"
#include "nir.h"
#include "glsl_types.h"
#include "nir_types.h"
#include "nir_builder.h"
#include "clc_nir.h"

View file

@ -23,8 +23,8 @@
#include "dxil_enums.h"
#include "glsl_types.h"
#include "nir.h"
#include "nir_types.h"
#include "util/u_debug.h"

View file

@ -25,9 +25,9 @@
* Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
*/
#include "compiler/glsl_types.h"
#include "compiler/glsl/glsl_to_nir.h"
#include "compiler/nir/nir_builder.h"
#include "compiler/nir_types.h"
#include "util/u_debug.h"
#include "bifrost/disassemble.h"

View file

@ -36,8 +36,8 @@
#include "util/u_dynarray.h"
#include "util/u_math.h"
#include "compiler/glsl_types.h"
#include "compiler/nir/nir.h"
#include "compiler/nir_types.h"
#include "panfrost/util/lcra.h"
#include "panfrost/util/pan_ir.h"

View file

@ -31,9 +31,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "compiler/glsl_types.h"
#include "compiler/glsl/glsl_to_nir.h"
#include "compiler/nir/nir_builder.h"
#include "compiler/nir_types.h"
#include "util/half_float.h"
#include "util/list.h"
#include "util/u_debug.h"