pvr: add initial pco stub/boilerplate

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32258>
This commit is contained in:
Simon Perretta 2024-04-05 16:12:59 +01:00 committed by Marge Bot
parent b82793221a
commit ab1298e926
4 changed files with 39 additions and 0 deletions

View file

@ -14,6 +14,7 @@ inc_imagination = include_directories([
if with_imagination_vk
subdir('common')
subdir('csbgen')
subdir('pco')
subdir('rogue')
subdir('vulkan')
endif

View file

@ -0,0 +1,26 @@
# Copyright © 2024 Imagination Technologies Ltd.
# SPDX-License-Identifier: MIT
inc_powervr_compiler = include_directories([
'.',
])
libpowervr_compiler_files = files(
'pco.c',
)
libpowervr_compiler = static_library(
'powervr_compiler',
[libpowervr_compiler_files],
include_directories : [
inc_imagination,
inc_powervr_compiler,
inc_include,
inc_compiler,
inc_src,
],
c_args : [imagination_c_args, no_override_init_args],
dependencies : [idep_mesautil, idep_nir],
gnu_symbol_visibility : 'hidden',
install : false,
)

11
src/imagination/pco/pco.c Normal file
View file

@ -0,0 +1,11 @@
/*
* Copyright © 2024 Imagination Technologies Ltd.
*
* SPDX-License-Identifier: MIT
*/
/**
* \file pco.c
*
* \brief Main compiler interface.
*/

View file

@ -108,6 +108,7 @@ libvulkan_powervr_mesa = shared_library(
],
link_with : [
libpowervr_common,
libpowervr_compiler,
libpowervr_pds,
libpowervr_rogue,
libvulkan_wsi,