panfrost: Move genxml related files to a subdir

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12208>
This commit is contained in:
Boris Brezillon 2021-08-05 11:12:53 +02:00 committed by Marge Bot
parent b76420be1f
commit 8276a8eb55
34 changed files with 95 additions and 70 deletions

View File

@ -34,7 +34,7 @@
#include "gallium/auxiliary/util/u_blend.h"
#include "panfrost-quirks.h"
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "pan_pool.h"
#include "pan_bo.h"

View File

@ -23,7 +23,7 @@
* SOFTWARE.
*/
#include <gen_macros.h>
#include <genxml/gen_macros.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>

View File

@ -26,7 +26,7 @@
#ifndef __PAN_DECODE_H__
#define __PAN_DECODE_H__
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "wrap.h"

View File

@ -74,22 +74,22 @@ pan_arch(unsigned gpu_id)
/* Base macro defined on the command line. */
#ifndef PAN_ARCH
# include "common_pack.h"
# include "genxml/common_pack.h"
#else
/* Suffixing macros */
#if (PAN_ARCH == 4)
# define GENX(X) X##_v4
# include "v4_pack.h"
# include "genxml/v4_pack.h"
#elif (PAN_ARCH == 5)
# define GENX(X) X##_v5
# include "v5_pack.h"
# include "genxml/v5_pack.h"
#elif (PAN_ARCH == 6)
# define GENX(X) X##_v6
# include "v6_pack.h"
# include "genxml/v6_pack.h"
#elif (PAN_ARCH == 7)
# define GENX(X) X##_v7
# include "v7_pack.h"
# include "genxml/v7_pack.h"
#else
# error "Need to add suffixing macro for this architecture"
#endif

View File

@ -0,0 +1,64 @@
# Copyright © 2018 Rob Clark
# Copyright © 2019 Collabora
# 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 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.
pan_packers = []
foreach packer : ['common', 'v4', 'v5', 'v6', 'v7']
pan_packers += custom_target(
packer + '_pack.h',
input : ['gen_pack.py', packer + '.xml'],
output : packer + '_pack.h',
command : [prog_python, '@INPUT@'],
capture : true,
)
endforeach
idep_pan_packers = declare_dependency(
sources : [pan_packers],
include_directories : include_directories('.'),
)
libpanfrost_decode_per_arch = []
foreach ver : ['4', '5', '6', '7']
libpanfrost_decode_per_arch += static_library(
'pandecode-arch-v' + ver,
['decode.c', pan_packers],
include_directories : [inc_include, inc_src, inc_panfrost],
dependencies : [dep_libdrm, idep_pan_packers, idep_nir],
c_args : [no_override_init_args, '-DPAN_ARCH=' + ver],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
endforeach
libpanfrost_decode = static_library(
'panfrost_decode',
[
'decode_common.c',
pan_packers
],
include_directories : [inc_include, inc_src, inc_panfrost],
dependencies : idep_mesautil,
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
link_with: [libpanfrost_decode_per_arch],
)

View File

@ -19,21 +19,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
pan_packers = []
foreach packer : ['common', 'v4', 'v5', 'v6', 'v7']
pan_packers += custom_target(
packer + '_pack.h',
input : ['gen_pack.py', packer + '.xml'],
output : packer + '_pack.h',
command : [prog_python, '@INPUT@'],
capture : true,
)
endforeach
idep_pan_packers = declare_dependency(
sources : [pan_packers],
include_directories : include_directories('.'),
)
subdir('genxml')
pixel_format_versions = ['6', '7']
libpanfrost_pixel_format = []
@ -52,7 +38,6 @@ foreach ver : pixel_format_versions
endforeach
libpanfrost_per_arch = []
libpanfrost_decode_per_arch = []
foreach ver : ['4', '5', '6', '7']
libpanfrost_per_arch += static_library(
@ -71,16 +56,6 @@ foreach ver : ['4', '5', '6', '7']
gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, idep_pan_packers, idep_nir],
)
libpanfrost_decode_per_arch += static_library(
'pandecode-arch-v' + ver,
['decode.c', pan_packers],
include_directories : [inc_include, inc_src, inc_panfrost],
dependencies : [dep_libdrm, idep_pan_packers, idep_nir],
c_args : [no_override_init_args, '-DPAN_ARCH=' + ver],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
endforeach
libpanfrost_lib_files = files(
@ -110,20 +85,6 @@ libpanfrost_lib = static_library(
link_with: [libpanfrost_pixel_format, libpanfrost_per_arch],
)
libpanfrost_decode = static_library(
'panfrost_decode',
[
'decode_common.c',
pan_packers
],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost],
dependencies : idep_mesautil,
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
link_with: [libpanfrost_decode_per_arch],
)
libpanfrost_dep = declare_dependency(
link_with: [libpanfrost_lib, libpanfrost_decode, libpanfrost_midgard, libpanfrost_bifrost, libpanfrost_pixel_format, libpanfrost_per_arch],
include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw, inc_panfrost],

View File

@ -25,7 +25,7 @@
#ifndef __PAN_BLEND_H__
#define __PAN_BLEND_H__
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "util/u_dynarray.h"
#include "util/format/u_format.h"

View File

@ -25,7 +25,7 @@
#ifndef __PAN_BLITTER_H
#define __PAN_BLITTER_H
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "panfrost-job.h"
#include "pan_cs.h"

View File

@ -23,7 +23,7 @@
*
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include <string.h>
#include "pan_util.h"

View File

@ -28,7 +28,7 @@
#ifndef __PAN_CS_H
#define __PAN_CS_H
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "pan_texture.h"

View File

@ -41,7 +41,7 @@
#include "pan_pool.h"
#include "pan_util.h"
#include <gen_macros.h>
#include <genxml/gen_macros.h>
#if defined(__cplusplus)
extern "C" {

View File

@ -33,7 +33,7 @@
#include <stdbool.h>
#include "util/format/u_format.h"
#include "pan_bo.h"
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "pan_device.h"
/* Indices for named (non-XFB) varyings that are present. These are packed

View File

@ -24,7 +24,7 @@
* Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "pan_format.h"
#include "util/format/u_format.h"

View File

@ -28,7 +28,7 @@
#ifndef __PAN_FORMAT_H
#define __PAN_FORMAT_H
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "util/format/u_format.h"

View File

@ -24,7 +24,7 @@
#ifndef __PAN_INDIRECT_DISPATCH_SHADERS_H__
#define __PAN_INDIRECT_DISPATCH_SHADERS_H__
#include "gen_macros.h"
#include "genxml/gen_macros.h"
struct pan_device;
struct pan_scoreboard;

View File

@ -24,7 +24,7 @@
#ifndef __PAN_INDIRECT_DRAW_SHADERS_H__
#define __PAN_INDIRECT_DRAW_SHADERS_H__
#include "gen_macros.h"
#include "genxml/gen_macros.h"
struct pan_device;
struct pan_scoreboard;

View File

@ -26,7 +26,7 @@
#define __PAN_POOL_H__
#include <stddef.h>
#include <gen_macros.h>
#include <genxml/gen_macros.h>
#include "pan_bo.h"
#include "util/u_dynarray.h"

View File

@ -27,7 +27,7 @@
#ifndef __PAN_SCOREBOARD_H__
#define __PAN_SCOREBOARD_H__
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "pan_pool.h"
struct pan_scoreboard {

View File

@ -29,7 +29,7 @@
#include "panfrost/util/pan_ir.h"
#include "pan_device.h"
#include "gen_macros.h"
#include "genxml/gen_macros.h"
struct panfrost_device;

View File

@ -28,13 +28,13 @@
#ifndef __PAN_TEXTURE_H
#define __PAN_TEXTURE_H
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include <stdbool.h>
#include "drm-uapi/drm_fourcc.h"
#include "util/format/u_format.h"
#include "compiler/shader_enums.h"
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "pan_bo.h"
#include "pan_device.h"
#include "pan_util.h"

View File

@ -26,7 +26,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "panvk_cs.h"
#include "panvk_private.h"

View File

@ -21,7 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "util/macros.h"
#include "compiler/shader_enums.h"

View File

@ -25,7 +25,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "panvk_private.h"

View File

@ -26,7 +26,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "decode.h"

View File

@ -26,7 +26,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "panvk_private.h"
#include "panfrost-quirks.h"

View File

@ -21,7 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "nir/nir_builder.h"
#include "pan_encoder.h"

View File

@ -24,7 +24,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "gen_macros.h"
#include "genxml/gen_macros.h"
#include "panvk_private.h"