Add Vulkan Panfrost APEX packaging for Orange Pi 5 Ultra
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Copyright (C) 2026 Brendan Szymanski <hello@bscubed.dev>
This commit is contained in:
Brendan Szymanski 2026-07-10 22:36:53 -04:00
parent 39090840e0
commit 2162a00496
54 changed files with 155112 additions and 4 deletions

View file

@ -358,8 +358,154 @@ cc_library_shared {
// Vulkan - PanVK driver
// ---------------------------------------------------------------------------
// cc_library_shared {
// name: "vulkan.panfrost",
// ...
// }
cc_defaults {
name: "mesa3d_panfrost_panvk_defaults",
defaults: ["mesa_common_defaults"],
cflags: [
"-DVK_USE_PLATFORM_ANDROID_KHR",
],
}
cc_library_shared {
name: "vulkan.panfrost",
vendor: true,
soc_specific: true,
relative_install_path: "hw",
stem: "vulkan.panfrost",
defaults: [
"mesa3d_panfrost_panvk_defaults",
],
srcs: [
"src/panfrost/vulkan/panvk_android.c",
"src/panfrost/vulkan/panvk_buffer.c",
"src/panfrost/vulkan/panvk_cmd_pool.c",
"src/panfrost/vulkan/panvk_device.c",
"src/panfrost/vulkan/panvk_device_memory.c",
"src/panfrost/vulkan/panvk_host_copy.c",
"src/panfrost/vulkan/panvk_image.c",
"src/panfrost/vulkan/panvk_instance.c",
"src/panfrost/vulkan/panvk_mempool.c",
"src/panfrost/vulkan/panvk_physical_device.c",
"src/panfrost/vulkan/panvk_priv_bo.c",
"src/panfrost/vulkan/panvk_utrace.c",
"src/panfrost/vulkan/panvk_utrace_perfetto.cc",
"src/panfrost/vulkan/panvk_wsi.c",
"meson_generated/src/panfrost/vulkan/panvk_entrypoints.c",
"meson_generated/src/panfrost/vulkan/panvk_tracepoints.c",
],
ldflags: [
"-Wl,--build-id=sha1",
"-Wl,-Bsymbolic",
],
shared_libs: [
"libcutils",
"libdrm",
"libhardware",
"liblog",
"libnativewindow",
"libsync",
"libui",
"libz",
],
static_libs: [
"libperfetto_client_experimental",
"mesa3d_panfrost_src_panfrost_shared",
"mesa3d_panfrost_src_panfrost_genxml",
"mesa3d_panfrost_src_panfrost_util",
"mesa3d_panfrost_src_panfrost_lib",
"mesa3d_panfrost_src_panfrost_model",
"mesa3d_panfrost_src_panfrost_lib_kmod",
"mesa3d_panfrost_src_panfrost_lib_arch_v4",
"mesa3d_panfrost_src_panfrost_lib_arch_v5",
"mesa3d_panfrost_src_panfrost_lib_arch_v6",
"mesa3d_panfrost_src_panfrost_lib_arch_v7",
"mesa3d_panfrost_src_panfrost_lib_arch_v9",
"mesa3d_panfrost_src_panfrost_lib_arch_v10",
"mesa3d_panfrost_src_panfrost_lib_arch_v12",
"mesa3d_panfrost_src_panfrost_lib_arch_v13",
"mesa3d_panfrost_src_panfrost_lib_format_v5",
"mesa3d_panfrost_src_panfrost_lib_format_v6",
"mesa3d_panfrost_src_panfrost_lib_format_v7",
"mesa3d_panfrost_src_panfrost_lib_format_v9",
"mesa3d_panfrost_src_panfrost_lib_format_v10",
"mesa3d_panfrost_src_panfrost_lib_format_v12",
"mesa3d_panfrost_src_panfrost_lib_format_v13",
"mesa3d_panfrost_src_panfrost_midgard",
"mesa3d_panfrost_src_panfrost_compiler",
"mesa3d_panfrost_src_panfrost_perf",
"mesa_vulkan_util",
"mesa_vulkan_runtime",
"mesa_vulkan_wsi",
"mesa_util",
"mesa_util_c11",
"mesa_util_format",
"mesa_blake3",
"mesa_compiler",
"mesa_nir",
"mesa_glsl",
"mesa_spirv",
],
whole_static_libs: [
"mesa3d_panfrost_src_panfrost_vulkan_v6",
"mesa3d_panfrost_src_panfrost_vulkan_v7",
"mesa3d_panfrost_src_panfrost_vulkan_v10",
"mesa3d_panfrost_src_panfrost_vulkan_v12",
"mesa3d_panfrost_src_panfrost_vulkan_v13",
"mesa_vulkan_runtime",
"mesa_vulkan_wsi",
],
local_include_dirs: [
"include",
"include/android_stub",
"src",
"src/compiler",
"src/compiler/nir",
"src/panfrost",
"src/panfrost/compiler",
"src/panfrost/genxml",
"src/panfrost/lib",
"src/panfrost/libpan",
"src/panfrost/midgard",
"src/panfrost/model",
"src/panfrost/shared",
"src/panfrost/vulkan",
"src/panfrost/vulkan/bifrost",
"src/panfrost/vulkan/jm",
"src/panfrost/vulkan/csf",
"src/vulkan/runtime",
"src/vulkan/runtime/bvh",
"src/vulkan/util",
"src/vulkan/wsi",
"meson_generated/src",
"meson_generated/src/compiler",
"meson_generated/src/compiler/nir",
"meson_generated/src/compiler/spirv",
"meson_generated/src/panfrost",
"meson_generated/src/panfrost/compiler",
"meson_generated/src/panfrost/genxml",
"meson_generated/src/panfrost/libpan",
"meson_generated/src/panfrost/midgard",
"meson_generated/src/panfrost/vulkan",
"meson_generated/src/util",
"meson_generated/src/util/format",
"meson_generated/src/vulkan/runtime",
"meson_generated/src/vulkan/util",
"meson_generated/src/vulkan/wsi",
],
target: {
android: {
header_libs: [
"libnativebase_headers",
],
},
},
}

46
apex/Android.bp Normal file
View file

@ -0,0 +1,46 @@
/*
* Copyright (C) 2026 Brendan Szymanski <hello@bscubed.dev>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
linker_config {
name: "android.hardware.vulkan.panfrost-linker-config",
src: "apex_linkerconfig.json",
installable: false,
}
prebuilt_etc {
name: "android.hardware.vulkan.panfrost.rc",
src: "android.hardware.vulkan.panfrost.rc",
installable: false,
}
apex {
name: "com.android.hardware.vulkan.panfrost",
manifest: "apex_manifest.json",
file_contexts: "apex_file_contexts",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
updatable: false,
vendor: true,
native_shared_libs: [
"vulkan.panfrost",
],
prebuilts: [
"android.hardware.vulkan.panfrost-linker-config",
"android.hardware.vulkan.panfrost.rc",
],
}

View file

@ -0,0 +1,6 @@
# `on init` is normally not available for .rc files in vendor apexes
# But the vulkan apex is okay because it's bootstrap APEX.
# For bootstrap APEXes, `on init` is the earliest available trigger.
on init
setprop ro.vulkan.apex com.android.hardware.vulkan.panfrost
setprop ro.hardware.vulkan panfrost

4
apex/apex_file_contexts Normal file
View file

@ -0,0 +1,4 @@
(/.*)? u:object_r:vendor_file:s0
/etc(/.*)? u:object_r:vendor_configs_file:s0
/etc/linker.config.pb u:object_r:linkerconfig_file:s0
/lib64(/.*)? u:object_r:same_process_hal_file:s0

View file

@ -0,0 +1,3 @@
{
"visible": true
}

5
apex/apex_manifest.json Normal file
View file

@ -0,0 +1,5 @@
{
"name": "com.android.hardware.vulkan.panfrost",
"version": 1,
"vendorBootstrap": true
}

View file

@ -0,0 +1,393 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#include "libpan_shaders_v10.h"
static const uint32_t panlib_clear_afbc_metadata_0_default[572] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x00000010, 0x3f800000, 0x00000000,
0x3ec00000, 0x3ec00000, 0x00000000, 0x00000000,
0x3f800000, 0x00000100, 0x00000002, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x30000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000009,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000100,
0x000a887d, 0x00a0c000, 0x00004086, 0x00a8c000,
0x00c08600, 0x00f0c104, 0x00008741, 0x00a8c100,
0x11c0c93c, 0x00b4c201, 0x11c0cf7c, 0x00b4c300,
0x00004200, 0x00a8c200, 0x00004341, 0x00a8c100,
0x00c04002, 0x00f0c004, 0x00004140, 0x00a8c000,
0x000000c0, 0x0091c400, 0x000000c0, 0x0091c500,
0x000000c0, 0x0091c600, 0x000000c0, 0x0091c700,
0x00000040, 0x0091c300, 0x38000042, 0x78614408,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
static const uint32_t panlib_copy_ts_query_result_0_default[924] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x000000c2, 0x40e00000, 0x00000000,
0x40950000, 0x40980000, 0x00000000, 0x00000000,
0x40e00000, 0x00000680, 0x00000002, 0x00000002,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x10000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000015,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000680,
0x80c08c3c, 0x00f0c004, 0x0000bf40, 0x501fc030,
0x0014003c, 0x0090c000, 0x00140090, 0x0090c100,
0x3014003c, 0x0090c200, 0x30140090, 0x0090c300,
0x000a0100, 0x00a0c400, 0x000a0340, 0x00a0c000,
0x000a4102, 0x00a0c100, 0x000a4342, 0x00a0c200,
0x000500c0, 0x00a1c300, 0x00004304, 0x00a8c300,
0x00c04403, 0x00f0c404, 0x00004442, 0x00a8c200,
0x30140040, 0x0090c000, 0x00004042, 0x00a8c000,
0x000501c0, 0x00a1c200, 0x00004203, 0x00a8c200,
0x00c04342, 0x00f0c204, 0x00004240, 0x00a8c000,
0x30140041, 0x0090c100, 0x00004140, 0x00a8c000,
0x000a903c, 0x00a0c100, 0x000a913c, 0x00a0c200,
0x00004240, 0x00a8c000, 0x0000418e, 0x00a8c100,
0x0000408f, 0x00a8c000, 0x00c08e01, 0x00f0c204,
0x00004042, 0x00a8c000, 0x00007c8b, 0x00a8c200,
0x00140002, 0x0090c300, 0x0014008a, 0x0090c400,
0x30140002, 0x0090c500, 0x3014008a, 0x0090c600,
0x000a0403, 0x00a0c700, 0x000a0643, 0x00a0c300,
0x000a4405, 0x00a0c400, 0x000a4645, 0x00a0c500,
0x000503c0, 0x00a1c600, 0x00004607, 0x00a8c600,
0x00c04706, 0x00f0c704, 0x00004745, 0x00a8c500,
0x30140043, 0x0090c300, 0x00004345, 0x00a8c300,
0x000504c0, 0x00a1c500, 0x00004506, 0x00a8c500,
0x00c04645, 0x00f0c504, 0x00004543, 0x00a8c300,
0x30140044, 0x0090c400, 0x00004443, 0x00a8c300,
0x000a8a42, 0x00a0c200, 0x00004286, 0x00a8c200,
0x00004387, 0x00a8c300, 0x00c08602, 0x00f0c404,
0x00004344, 0x00a8c300, 0xffffff94, 0x0110c4ff,
0x000000c8, 0x0091c500, 0x1dc04594, 0x00b4c501,
0xfffff845, 0x0110c5ff, 0x15c0cf04, 0x00b4c600,
0x00004502, 0x00a8c500, 0x00004603, 0x00a8c600,
0x00c00205, 0x00f0c704, 0x00004647, 0x00a8c600,
0x00000045, 0x0091c800, 0x00000046, 0x0091c900,
0x28000048, 0x086086f4, 0x80c0c007, 0x00f0c503,
0x00005245, 0x501fc030, 0x9cc0c406, 0x00f0c500,
0x00002645, 0x501fc030, 0x000000c0, 0x0110c500,
0xffffffc0, 0x0110c6ff, 0xffffffc0, 0x5110c8ff,
0x80c00405, 0x00f0c902, 0x00001a49, 0x501fc020,
0x1dc0c805, 0x00b4c901, 0x15c0cf05, 0x00b4ca00,
0x00004902, 0x00a8c900, 0x00004a03, 0x00a8ca00,
0x00c00209, 0x00f0cb04, 0x00004a4b, 0x00a8ca00,
0x00000049, 0x0091cc00, 0x0000004a, 0x0091cd00,
0x6800004c, 0x10608af4, 0x110bc00a, 0x00b4c901,
0x11c005c4, 0x00b4cc71, 0x100cc007, 0x00b4cd01,
0x494d494d, 0x0150c904, 0x80c00a06, 0x00f0cd04,
0x814d0b08, 0x00f0cd00, 0x804d0b08, 0x00f0cd04,
0x114cc0c0, 0x00b4cc09, 0x104cc007, 0x00b4cc01,
0x114dc0c0, 0x00b4cd09, 0x80c0c049, 0x00f0c903,
0x104dc009, 0x00b4cd01, 0x00000145, 0x0110c500,
0x4a46c00d, 0x0150c600, 0x4b48c04d, 0x0150c800,
0x4c47c049, 0x0150c700, 0xffffe4c0, 0x501fc017,
0x80c0c106, 0x00f0c200, 0x8142c108, 0x00f0c200,
0xc048c002, 0x0150c300, 0xc046c042, 0x0150c200,
0x00000047, 0x0091c400, 0x000000c0, 0x0110c500,
0x000026c0, 0x501fc010, 0x80c0c046, 0x00f0c500,
0x00002005, 0x501fc030, 0x000000c0, 0x0110c600,
0x000000c0, 0x0110c800, 0x000000c0, 0x5110c900,
0x80c00406, 0x00f0ca02, 0x0000174a, 0x501fc020,
0x1dc0c806, 0x00b4ca01, 0x15c0cf06, 0x00b4cb00,
0x00004a02, 0x00a8ca00, 0x00004b03, 0x00a8cb00,
0x00c0020a, 0x00f0cc04, 0x00004b4c, 0x00a8cb00,
0xa800004a, 0x20608af4, 0x110bc00a, 0x00b4cc01,
0x11c006c4, 0x00b4cd71, 0x100dc007, 0x00b4ce01,
0x4c4e4c4e, 0x0150cc04, 0x80c00a08, 0x00f0ce04,
0x814e0b09, 0x00f0ce00, 0x804e0b09, 0x00f0ce04,
0x114dc0c0, 0x00b4cd09, 0x104dc007, 0x00b4cd01,
0x80c0c04c, 0x00f0cc03, 0x104ec00c, 0x00b4ce01,
0x00000146, 0x0110c600, 0x4a48c00e, 0x0150c800,
0x4b49c04e, 0x0150c900, 0x4d47c04c, 0x0150c700,
0xffffe7c0, 0x501fc017, 0x00000048, 0x0091c200,
0x00000049, 0x0091c300, 0x00000047, 0x0091c400,
0x000003c0, 0x501fc010, 0x000000c0, 0x0110c200,
0x000000c0, 0x0110c300, 0x00000047, 0x5091c400,
0x1145c0c0, 0x50b4c509, 0x80c0c044, 0x00f0c400,
0x1145c0c0, 0x00b4c509, 0x1044c045, 0x00b4c401,
0x000003c0, 0x501fc010, 0x000000c0, 0x0110c400,
0x000000c0, 0x0110c200, 0x000000c0, 0x5110c300,
0x000008c0, 0x0110c500, 0x1045c093, 0x00b4c501,
0x80c0c045, 0x00f0c503, 0x1104c045, 0x00b4c501,
0x00000b45, 0x501fc030, 0x000001c0, 0x0110c500,
0x1045c093, 0x00b4c501, 0x80c0c045, 0x00f0c500,
0x00000445, 0x501fc030, 0x00000001, 0x0091c600,
0x00000000, 0x0091c700, 0x18000046, 0x00614202,
0x000003c0, 0x501fc010, 0x00000001, 0x0091c600,
0x00000000, 0x0091c700, 0x68000046, 0x50614204,
0x000004c0, 0x0110c200, 0x1002c093, 0x00b4c201,
0x80c0c002, 0x00f0c203, 0x00001302, 0x501fc030,
0x000001c0, 0x0110c200, 0x02c0c044, 0x0150c300,
0x1002c093, 0x00b4c201, 0x80c0c002, 0x00f0c200,
0x00000702, 0x501fc030, 0x00000401, 0x0110c200,
0x00c04102, 0x00f0c104, 0x00004041, 0x00a8c000,
0x00000002, 0x0091c400, 0x00000040, 0x1891c500,
0x98000044, 0x00614302, 0x000007c0, 0x501fc010,
0x00000801, 0x0110c200, 0x00c04102, 0x00f0c104,
0x00004041, 0x00a8c000, 0x00000003, 0x0091c400,
0x000000c0, 0x0091c500, 0x00000040, 0x1891c300,
0x28000042, 0x50614404, 0x00000000, 0x7800c000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
const uint32_t *libpan_shaders_default_v10[LIBPAN_SHADERS_NUM_PROGRAMS] = {
[PANLIB_CLEAR_AFBC_METADATA] = panlib_clear_afbc_metadata_0_default,
[PANLIB_COPY_TS_QUERY_RESULT] = panlib_copy_ts_query_result_0_default,
};

View file

@ -0,0 +1,76 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
struct panlib_clear_afbc_metadata_args {
uint64_t p;
uint32_t layer_or_slice_stride;
} PACKED;
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, p) == 0, "");
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, layer_or_slice_stride) == 8, "");
static_assert(sizeof(struct panlib_clear_afbc_metadata_args) == 12, "");
struct panlib_copy_ts_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint8_t _pad5[4];
uint64_t dst_addr;
uint64_t dst_stride;
uint32_t query_type;
uint32_t flags;
uint32_t report_count;
} PACKED;
static_assert(offsetof(struct panlib_copy_ts_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, dst_addr) == 32, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, dst_stride) == 40, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_type) == 48, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, flags) == 52, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, report_count) == 56, "");
static_assert(sizeof(struct panlib_copy_ts_query_result_args) == 60, "");
enum libpan_shaders_program {
PANLIB_CLEAR_AFBC_METADATA = 0,
PANLIB_COPY_TS_QUERY_RESULT = 1,
LIBPAN_SHADERS_NUM_PROGRAMS,
};
#define panlib_clear_afbc_metadata_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_afbc_metadata_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_afbc_metadata(_context, _grid, _barrier, p, layer_or_slice_stride) do { \
struct panlib_clear_afbc_metadata_args _args = {p, layer_or_slice_stride};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_ts_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_copy_ts_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_TS_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_ts_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, dst_addr, dst_stride, query_type, flags, report_count) do { \
struct panlib_copy_ts_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, {0}, dst_addr, dst_stride, query_type, flags, report_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_TS_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
extern const uint32_t *libpan_shaders_default_v10[LIBPAN_SHADERS_NUM_PROGRAMS];

View file

@ -0,0 +1,393 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#include "libpan_shaders_v12.h"
static const uint32_t panlib_clear_afbc_metadata_0_default[572] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x00000010, 0x3f800000, 0x00000000,
0x3ec00000, 0x3ec00000, 0x00000000, 0x00000000,
0x3f800000, 0x00000100, 0x00000002, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x30000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000009,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000100,
0x000a887d, 0x00a0c000, 0x00004086, 0x00a8c000,
0x00c08600, 0x00f0c104, 0x00008741, 0x00a8c100,
0x11c0c93c, 0x00b4c201, 0x11c0cf7c, 0x00b4c300,
0x00004200, 0x00a8c200, 0x00004341, 0x00a8c100,
0x00c04002, 0x00f0c004, 0x00004140, 0x00a8c000,
0x000000c0, 0x0091c400, 0x000000c0, 0x0091c500,
0x000000c0, 0x0091c600, 0x000000c0, 0x0091c700,
0x00000040, 0x0091c300, 0x38000042, 0x78614408,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
static const uint32_t panlib_copy_ts_query_result_0_default[924] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x000000c2, 0x40e00000, 0x00000000,
0x40950000, 0x40980000, 0x00000000, 0x00000000,
0x40e00000, 0x00000680, 0x00000002, 0x00000002,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x10000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000015,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000680,
0x80c08c3c, 0x00f0c004, 0x0000bf40, 0x501fc030,
0x0014003c, 0x0090c000, 0x00140090, 0x0090c100,
0x3014003c, 0x0090c200, 0x30140090, 0x0090c300,
0x000a0100, 0x00a0c400, 0x000a0340, 0x00a0c000,
0x000a4102, 0x00a0c100, 0x000a4342, 0x00a0c200,
0x000500c0, 0x00a1c300, 0x00004304, 0x00a8c300,
0x00c04403, 0x00f0c404, 0x00004442, 0x00a8c200,
0x30140040, 0x0090c000, 0x00004042, 0x00a8c000,
0x000501c0, 0x00a1c200, 0x00004203, 0x00a8c200,
0x00c04342, 0x00f0c204, 0x00004240, 0x00a8c000,
0x30140041, 0x0090c100, 0x00004140, 0x00a8c000,
0x000a903c, 0x00a0c100, 0x000a913c, 0x00a0c200,
0x00004240, 0x00a8c000, 0x0000418e, 0x00a8c100,
0x0000408f, 0x00a8c000, 0x00c08e01, 0x00f0c204,
0x00004042, 0x00a8c000, 0x00007c8b, 0x00a8c200,
0x00140002, 0x0090c300, 0x0014008a, 0x0090c400,
0x30140002, 0x0090c500, 0x3014008a, 0x0090c600,
0x000a0403, 0x00a0c700, 0x000a0643, 0x00a0c300,
0x000a4405, 0x00a0c400, 0x000a4645, 0x00a0c500,
0x000503c0, 0x00a1c600, 0x00004607, 0x00a8c600,
0x00c04706, 0x00f0c704, 0x00004745, 0x00a8c500,
0x30140043, 0x0090c300, 0x00004345, 0x00a8c300,
0x000504c0, 0x00a1c500, 0x00004506, 0x00a8c500,
0x00c04645, 0x00f0c504, 0x00004543, 0x00a8c300,
0x30140044, 0x0090c400, 0x00004443, 0x00a8c300,
0x000a8a42, 0x00a0c200, 0x00004286, 0x00a8c200,
0x00004387, 0x00a8c300, 0x00c08602, 0x00f0c404,
0x00004344, 0x00a8c300, 0xffffff94, 0x0110c4ff,
0x000000c8, 0x0091c500, 0x1dc04594, 0x00b4c501,
0xfffff845, 0x0110c5ff, 0x15c0cf04, 0x00b4c600,
0x00004502, 0x00a8c500, 0x00004603, 0x00a8c600,
0x00c00205, 0x00f0c704, 0x00004647, 0x00a8c600,
0x00000045, 0x0091c800, 0x00000046, 0x0091c900,
0x28000048, 0x086086f4, 0x80c0c007, 0x00f0c503,
0x00005245, 0x501fc030, 0x9cc0c406, 0x00f0c500,
0x00002645, 0x501fc030, 0x000000c0, 0x0110c500,
0xffffffc0, 0x0110c6ff, 0xffffffc0, 0x5110c8ff,
0x80c00405, 0x00f0c902, 0x00001a49, 0x501fc020,
0x1dc0c805, 0x00b4c901, 0x15c0cf05, 0x00b4ca00,
0x00004902, 0x00a8c900, 0x00004a03, 0x00a8ca00,
0x00c00209, 0x00f0cb04, 0x00004a4b, 0x00a8ca00,
0x00000049, 0x0091cc00, 0x0000004a, 0x0091cd00,
0x6800004c, 0x10608af4, 0x110bc00a, 0x00b4c901,
0x11c005c4, 0x00b4cc71, 0x100cc007, 0x00b4cd01,
0x494d494d, 0x0150c904, 0x80c00a06, 0x00f0cd04,
0x814d0b08, 0x00f0cd00, 0x804d0b08, 0x00f0cd04,
0x114cc0c0, 0x00b4cc09, 0x104cc007, 0x00b4cc01,
0x114dc0c0, 0x00b4cd09, 0x80c0c049, 0x00f0c903,
0x104dc009, 0x00b4cd01, 0x00000145, 0x0110c500,
0x4a46c00d, 0x0150c600, 0x4b48c04d, 0x0150c800,
0x4c47c049, 0x0150c700, 0xffffe4c0, 0x501fc017,
0x80c0c106, 0x00f0c200, 0x8142c108, 0x00f0c200,
0xc048c002, 0x0150c300, 0xc046c042, 0x0150c200,
0x00000047, 0x0091c400, 0x000000c0, 0x0110c500,
0x000026c0, 0x501fc010, 0x80c0c046, 0x00f0c500,
0x00002005, 0x501fc030, 0x000000c0, 0x0110c600,
0x000000c0, 0x0110c800, 0x000000c0, 0x5110c900,
0x80c00406, 0x00f0ca02, 0x0000174a, 0x501fc020,
0x1dc0c806, 0x00b4ca01, 0x15c0cf06, 0x00b4cb00,
0x00004a02, 0x00a8ca00, 0x00004b03, 0x00a8cb00,
0x00c0020a, 0x00f0cc04, 0x00004b4c, 0x00a8cb00,
0xa800004a, 0x20608af4, 0x110bc00a, 0x00b4cc01,
0x11c006c4, 0x00b4cd71, 0x100dc007, 0x00b4ce01,
0x4c4e4c4e, 0x0150cc04, 0x80c00a08, 0x00f0ce04,
0x814e0b09, 0x00f0ce00, 0x804e0b09, 0x00f0ce04,
0x114dc0c0, 0x00b4cd09, 0x104dc007, 0x00b4cd01,
0x80c0c04c, 0x00f0cc03, 0x104ec00c, 0x00b4ce01,
0x00000146, 0x0110c600, 0x4a48c00e, 0x0150c800,
0x4b49c04e, 0x0150c900, 0x4d47c04c, 0x0150c700,
0xffffe7c0, 0x501fc017, 0x00000048, 0x0091c200,
0x00000049, 0x0091c300, 0x00000047, 0x0091c400,
0x000003c0, 0x501fc010, 0x000000c0, 0x0110c200,
0x000000c0, 0x0110c300, 0x00000047, 0x5091c400,
0x1145c0c0, 0x50b4c509, 0x80c0c044, 0x00f0c400,
0x1145c0c0, 0x00b4c509, 0x1044c045, 0x00b4c401,
0x000003c0, 0x501fc010, 0x000000c0, 0x0110c400,
0x000000c0, 0x0110c200, 0x000000c0, 0x5110c300,
0x000008c0, 0x0110c500, 0x1045c093, 0x00b4c501,
0x80c0c045, 0x00f0c503, 0x1104c045, 0x00b4c501,
0x00000b45, 0x501fc030, 0x000001c0, 0x0110c500,
0x1045c093, 0x00b4c501, 0x80c0c045, 0x00f0c500,
0x00000445, 0x501fc030, 0x00000001, 0x0091c600,
0x00000000, 0x0091c700, 0x18000046, 0x00614202,
0x000003c0, 0x501fc010, 0x00000001, 0x0091c600,
0x00000000, 0x0091c700, 0x68000046, 0x50614204,
0x000004c0, 0x0110c200, 0x1002c093, 0x00b4c201,
0x80c0c002, 0x00f0c203, 0x00001302, 0x501fc030,
0x000001c0, 0x0110c200, 0x02c0c044, 0x0150c300,
0x1002c093, 0x00b4c201, 0x80c0c002, 0x00f0c200,
0x00000702, 0x501fc030, 0x00000401, 0x0110c200,
0x00c04102, 0x00f0c104, 0x00004041, 0x00a8c000,
0x00000002, 0x0091c400, 0x00000040, 0x1891c500,
0x98000044, 0x00614302, 0x000007c0, 0x501fc010,
0x00000801, 0x0110c200, 0x00c04102, 0x00f0c104,
0x00004041, 0x00a8c000, 0x00000003, 0x0091c400,
0x000000c0, 0x0091c500, 0x00000040, 0x1891c300,
0x28000042, 0x50614404, 0x00000000, 0x7800c000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
const uint32_t *libpan_shaders_default_v12[LIBPAN_SHADERS_NUM_PROGRAMS] = {
[PANLIB_CLEAR_AFBC_METADATA] = panlib_clear_afbc_metadata_0_default,
[PANLIB_COPY_TS_QUERY_RESULT] = panlib_copy_ts_query_result_0_default,
};

View file

@ -0,0 +1,76 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
struct panlib_clear_afbc_metadata_args {
uint64_t p;
uint32_t layer_or_slice_stride;
} PACKED;
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, p) == 0, "");
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, layer_or_slice_stride) == 8, "");
static_assert(sizeof(struct panlib_clear_afbc_metadata_args) == 12, "");
struct panlib_copy_ts_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint8_t _pad5[4];
uint64_t dst_addr;
uint64_t dst_stride;
uint32_t query_type;
uint32_t flags;
uint32_t report_count;
} PACKED;
static_assert(offsetof(struct panlib_copy_ts_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, dst_addr) == 32, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, dst_stride) == 40, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_type) == 48, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, flags) == 52, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, report_count) == 56, "");
static_assert(sizeof(struct panlib_copy_ts_query_result_args) == 60, "");
enum libpan_shaders_program {
PANLIB_CLEAR_AFBC_METADATA = 0,
PANLIB_COPY_TS_QUERY_RESULT = 1,
LIBPAN_SHADERS_NUM_PROGRAMS,
};
#define panlib_clear_afbc_metadata_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_afbc_metadata_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_afbc_metadata(_context, _grid, _barrier, p, layer_or_slice_stride) do { \
struct panlib_clear_afbc_metadata_args _args = {p, layer_or_slice_stride};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_ts_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_copy_ts_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_TS_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_ts_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, dst_addr, dst_stride, query_type, flags, report_count) do { \
struct panlib_copy_ts_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, {0}, dst_addr, dst_stride, query_type, flags, report_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_TS_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
extern const uint32_t *libpan_shaders_default_v12[LIBPAN_SHADERS_NUM_PROGRAMS];

View file

@ -0,0 +1,393 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#include "libpan_shaders_v13.h"
static const uint32_t panlib_clear_afbc_metadata_0_default[572] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x00000010, 0x3f800000, 0x00000000,
0x3ec00000, 0x3ec00000, 0x00000000, 0x00000000,
0x3f800000, 0x00000100, 0x00000002, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x30000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000009,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000100,
0x000a887d, 0x00a0c000, 0x00004086, 0x00a8c000,
0x00c08600, 0x00f0c104, 0x00008741, 0x00a8c100,
0x11c0c93c, 0x00b4c201, 0x11c0cf7c, 0x00b4c300,
0x00004200, 0x00a8c200, 0x00004341, 0x00a8c100,
0x00c04002, 0x00f0c004, 0x00004140, 0x00a8c000,
0x000000c0, 0x0091c400, 0x000000c0, 0x0091c500,
0x000000c0, 0x0091c600, 0x000000c0, 0x0091c700,
0x00000040, 0x0091c300, 0x38000042, 0x78614408,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
static const uint32_t panlib_copy_ts_query_result_0_default[924] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x000000c2, 0x40e00000, 0x00000000,
0x40950000, 0x40980000, 0x00000000, 0x00000000,
0x40e00000, 0x00000680, 0x00000002, 0x00000002,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x10000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000015,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000680,
0x80c08c3c, 0x00f0c004, 0x0000bf40, 0x501fc030,
0x0014003c, 0x0090c000, 0x00140090, 0x0090c100,
0x3014003c, 0x0090c200, 0x30140090, 0x0090c300,
0x000a0100, 0x00a0c400, 0x000a0340, 0x00a0c000,
0x000a4102, 0x00a0c100, 0x000a4342, 0x00a0c200,
0x000500c0, 0x00a1c300, 0x00004304, 0x00a8c300,
0x00c04403, 0x00f0c404, 0x00004442, 0x00a8c200,
0x30140040, 0x0090c000, 0x00004042, 0x00a8c000,
0x000501c0, 0x00a1c200, 0x00004203, 0x00a8c200,
0x00c04342, 0x00f0c204, 0x00004240, 0x00a8c000,
0x30140041, 0x0090c100, 0x00004140, 0x00a8c000,
0x000a903c, 0x00a0c100, 0x000a913c, 0x00a0c200,
0x00004240, 0x00a8c000, 0x0000418e, 0x00a8c100,
0x0000408f, 0x00a8c000, 0x00c08e01, 0x00f0c204,
0x00004042, 0x00a8c000, 0x00007c8b, 0x00a8c200,
0x00140002, 0x0090c300, 0x0014008a, 0x0090c400,
0x30140002, 0x0090c500, 0x3014008a, 0x0090c600,
0x000a0403, 0x00a0c700, 0x000a0643, 0x00a0c300,
0x000a4405, 0x00a0c400, 0x000a4645, 0x00a0c500,
0x000503c0, 0x00a1c600, 0x00004607, 0x00a8c600,
0x00c04706, 0x00f0c704, 0x00004745, 0x00a8c500,
0x30140043, 0x0090c300, 0x00004345, 0x00a8c300,
0x000504c0, 0x00a1c500, 0x00004506, 0x00a8c500,
0x00c04645, 0x00f0c504, 0x00004543, 0x00a8c300,
0x30140044, 0x0090c400, 0x00004443, 0x00a8c300,
0x000a8a42, 0x00a0c200, 0x00004286, 0x00a8c200,
0x00004387, 0x00a8c300, 0x00c08602, 0x00f0c404,
0x00004344, 0x00a8c300, 0xffffff94, 0x0110c4ff,
0x000000c8, 0x0091c500, 0x1dc04594, 0x00b4c501,
0xfffff845, 0x0110c5ff, 0x15c0cf04, 0x00b4c600,
0x00004502, 0x00a8c500, 0x00004603, 0x00a8c600,
0x00c00205, 0x00f0c704, 0x00004647, 0x00a8c600,
0x00000045, 0x0091c800, 0x00000046, 0x0091c900,
0x28000048, 0x086086f4, 0x80c0c007, 0x00f0c503,
0x00005245, 0x501fc030, 0x9cc0c406, 0x00f0c500,
0x00002645, 0x501fc030, 0x000000c0, 0x0110c500,
0xffffffc0, 0x0110c6ff, 0xffffffc0, 0x5110c8ff,
0x80c00405, 0x00f0c902, 0x00001a49, 0x501fc020,
0x1dc0c805, 0x00b4c901, 0x15c0cf05, 0x00b4ca00,
0x00004902, 0x00a8c900, 0x00004a03, 0x00a8ca00,
0x00c00209, 0x00f0cb04, 0x00004a4b, 0x00a8ca00,
0x00000049, 0x0091cc00, 0x0000004a, 0x0091cd00,
0x6800004c, 0x10608af4, 0x110bc00a, 0x00b4c901,
0x11c005c4, 0x00b4cc71, 0x100cc007, 0x00b4cd01,
0x494d494d, 0x0150c904, 0x80c00a06, 0x00f0cd04,
0x814d0b08, 0x00f0cd00, 0x804d0b08, 0x00f0cd04,
0x114cc0c0, 0x00b4cc09, 0x104cc007, 0x00b4cc01,
0x114dc0c0, 0x00b4cd09, 0x80c0c049, 0x00f0c903,
0x104dc009, 0x00b4cd01, 0x00000145, 0x0110c500,
0x4a46c00d, 0x0150c600, 0x4b48c04d, 0x0150c800,
0x4c47c049, 0x0150c700, 0xffffe4c0, 0x501fc017,
0x80c0c106, 0x00f0c200, 0x8142c108, 0x00f0c200,
0xc048c002, 0x0150c300, 0xc046c042, 0x0150c200,
0x00000047, 0x0091c400, 0x000000c0, 0x0110c500,
0x000026c0, 0x501fc010, 0x80c0c046, 0x00f0c500,
0x00002005, 0x501fc030, 0x000000c0, 0x0110c600,
0x000000c0, 0x0110c800, 0x000000c0, 0x5110c900,
0x80c00406, 0x00f0ca02, 0x0000174a, 0x501fc020,
0x1dc0c806, 0x00b4ca01, 0x15c0cf06, 0x00b4cb00,
0x00004a02, 0x00a8ca00, 0x00004b03, 0x00a8cb00,
0x00c0020a, 0x00f0cc04, 0x00004b4c, 0x00a8cb00,
0xa800004a, 0x20608af4, 0x110bc00a, 0x00b4cc01,
0x11c006c4, 0x00b4cd71, 0x100dc007, 0x00b4ce01,
0x4c4e4c4e, 0x0150cc04, 0x80c00a08, 0x00f0ce04,
0x814e0b09, 0x00f0ce00, 0x804e0b09, 0x00f0ce04,
0x114dc0c0, 0x00b4cd09, 0x104dc007, 0x00b4cd01,
0x80c0c04c, 0x00f0cc03, 0x104ec00c, 0x00b4ce01,
0x00000146, 0x0110c600, 0x4a48c00e, 0x0150c800,
0x4b49c04e, 0x0150c900, 0x4d47c04c, 0x0150c700,
0xffffe7c0, 0x501fc017, 0x00000048, 0x0091c200,
0x00000049, 0x0091c300, 0x00000047, 0x0091c400,
0x000003c0, 0x501fc010, 0x000000c0, 0x0110c200,
0x000000c0, 0x0110c300, 0x00000047, 0x5091c400,
0x1145c0c0, 0x50b4c509, 0x80c0c044, 0x00f0c400,
0x1145c0c0, 0x00b4c509, 0x1044c045, 0x00b4c401,
0x000003c0, 0x501fc010, 0x000000c0, 0x0110c400,
0x000000c0, 0x0110c200, 0x000000c0, 0x5110c300,
0x000008c0, 0x0110c500, 0x1045c093, 0x00b4c501,
0x80c0c045, 0x00f0c503, 0x1104c045, 0x00b4c501,
0x00000b45, 0x501fc030, 0x000001c0, 0x0110c500,
0x1045c093, 0x00b4c501, 0x80c0c045, 0x00f0c500,
0x00000445, 0x501fc030, 0x00000001, 0x0091c600,
0x00000000, 0x0091c700, 0x18000046, 0x00614202,
0x000003c0, 0x501fc010, 0x00000001, 0x0091c600,
0x00000000, 0x0091c700, 0x68000046, 0x50614204,
0x000004c0, 0x0110c200, 0x1002c093, 0x00b4c201,
0x80c0c002, 0x00f0c203, 0x00001302, 0x501fc030,
0x000001c0, 0x0110c200, 0x02c0c044, 0x0150c300,
0x1002c093, 0x00b4c201, 0x80c0c002, 0x00f0c200,
0x00000702, 0x501fc030, 0x00000401, 0x0110c200,
0x00c04102, 0x00f0c104, 0x00004041, 0x00a8c000,
0x00000002, 0x0091c400, 0x00000040, 0x1891c500,
0x98000044, 0x00614302, 0x000007c0, 0x501fc010,
0x00000801, 0x0110c200, 0x00c04102, 0x00f0c104,
0x00004041, 0x00a8c000, 0x00000003, 0x0091c400,
0x000000c0, 0x0091c500, 0x00000040, 0x1891c300,
0x28000042, 0x50614404, 0x00000000, 0x7800c000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
const uint32_t *libpan_shaders_default_v13[LIBPAN_SHADERS_NUM_PROGRAMS] = {
[PANLIB_CLEAR_AFBC_METADATA] = panlib_clear_afbc_metadata_0_default,
[PANLIB_COPY_TS_QUERY_RESULT] = panlib_copy_ts_query_result_0_default,
};

View file

@ -0,0 +1,76 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
struct panlib_clear_afbc_metadata_args {
uint64_t p;
uint32_t layer_or_slice_stride;
} PACKED;
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, p) == 0, "");
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, layer_or_slice_stride) == 8, "");
static_assert(sizeof(struct panlib_clear_afbc_metadata_args) == 12, "");
struct panlib_copy_ts_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint8_t _pad5[4];
uint64_t dst_addr;
uint64_t dst_stride;
uint32_t query_type;
uint32_t flags;
uint32_t report_count;
} PACKED;
static_assert(offsetof(struct panlib_copy_ts_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, dst_addr) == 32, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, dst_stride) == 40, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, query_type) == 48, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, flags) == 52, "");
static_assert(offsetof(struct panlib_copy_ts_query_result_args, report_count) == 56, "");
static_assert(sizeof(struct panlib_copy_ts_query_result_args) == 60, "");
enum libpan_shaders_program {
PANLIB_CLEAR_AFBC_METADATA = 0,
PANLIB_COPY_TS_QUERY_RESULT = 1,
LIBPAN_SHADERS_NUM_PROGRAMS,
};
#define panlib_clear_afbc_metadata_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_afbc_metadata_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_afbc_metadata(_context, _grid, _barrier, p, layer_or_slice_stride) do { \
struct panlib_clear_afbc_metadata_args _args = {p, layer_or_slice_stride};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_ts_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_copy_ts_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_TS_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_ts_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, dst_addr, dst_stride, query_type, flags, report_count) do { \
struct panlib_copy_ts_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, {0}, dst_addr, dst_stride, query_type, flags, report_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_TS_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
extern const uint32_t *libpan_shaders_default_v13[LIBPAN_SHADERS_NUM_PROGRAMS];

View file

@ -0,0 +1,13 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#include "libpan_shaders_v4.h"
const uint32_t *libpan_shaders_default_v4[LIBPAN_SHADERS_NUM_PROGRAMS] = {
};

View file

@ -0,0 +1,19 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
enum libpan_shaders_program {
LIBPAN_SHADERS_NUM_PROGRAMS,
};
extern const uint32_t *libpan_shaders_default_v4[LIBPAN_SHADERS_NUM_PROGRAMS];

View file

@ -0,0 +1,13 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#include "libpan_shaders_v5.h"
const uint32_t *libpan_shaders_default_v5[LIBPAN_SHADERS_NUM_PROGRAMS] = {
};

View file

@ -0,0 +1,19 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
enum libpan_shaders_program {
LIBPAN_SHADERS_NUM_PROGRAMS,
};
extern const uint32_t *libpan_shaders_default_v5[LIBPAN_SHADERS_NUM_PROGRAMS];

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,283 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
struct panlib_clear_afbc_metadata_args {
uint64_t p;
uint32_t layer_or_slice_stride;
} PACKED;
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, p) == 0, "");
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, layer_or_slice_stride) == 8, "");
static_assert(sizeof(struct panlib_clear_afbc_metadata_args) == 12, "");
struct panlib_copy_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint8_t _pad5[4];
uint64_t dst_addr;
uint64_t dst_stride;
uint32_t query_type;
uint32_t flags;
uint32_t report_count;
} PACKED;
static_assert(offsetof(struct panlib_copy_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_copy_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_copy_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_copy_query_result_args, dst_addr) == 32, "");
static_assert(offsetof(struct panlib_copy_query_result_args, dst_stride) == 40, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_type) == 48, "");
static_assert(offsetof(struct panlib_copy_query_result_args, flags) == 52, "");
static_assert(offsetof(struct panlib_copy_query_result_args, report_count) == 56, "");
static_assert(sizeof(struct panlib_copy_query_result_args) == 60, "");
struct panlib_clear_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint32_t report_count;
uint32_t availaible_value;
} PACKED;
static_assert(offsetof(struct panlib_clear_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_clear_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_clear_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_clear_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_clear_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_clear_query_result_args, report_count) == 28, "");
static_assert(offsetof(struct panlib_clear_query_result_args, availaible_value) == 32, "");
static_assert(sizeof(struct panlib_clear_query_result_args) == 36, "");
struct panlib_draw_indirect_helper_args {
uint64_t cmd;
uint64_t varying_bufs_descs;
uint64_t varying_bufs_info;
uint64_t attrib_bufs_descs;
uint64_t attrib_bufs_infos;
uint32_t attrib_bufs_valid;
uint32_t attribs_valid;
uint64_t attribs_descs;
uint64_t attribs_infos;
uint64_t first_vertex_sysval;
uint64_t first_instance_sysval;
uint64_t raw_vertex_offset_sysval;
uint64_t idvs_job;
uint64_t vertex_job;
uint64_t tiler_job;
uint32_t primitive_vertex_count;
} PACKED;
static_assert(offsetof(struct panlib_draw_indirect_helper_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, varying_bufs_descs) == 8, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, varying_bufs_info) == 16, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attrib_bufs_descs) == 24, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attrib_bufs_infos) == 32, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attrib_bufs_valid) == 40, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attribs_valid) == 44, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attribs_descs) == 48, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attribs_infos) == 56, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, first_vertex_sysval) == 64, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, first_instance_sysval) == 72, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, raw_vertex_offset_sysval) == 80, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, idvs_job) == 88, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, vertex_job) == 96, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, tiler_job) == 104, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, primitive_vertex_count) == 112, "");
static_assert(sizeof(struct panlib_draw_indirect_helper_args) == 116, "");
struct panlib_draw_indexed_indirect_helper_args {
uint64_t cmd;
uint64_t index_buffer_ptr;
uint64_t index_min_max_res;
uint32_t index_size;
uint32_t primitive_vertex_count;
uint32_t attrib_bufs_valid;
uint32_t attribs_valid;
uint64_t varying_bufs_descs;
uint64_t varying_bufs_info;
uint64_t attrib_bufs_descs;
uint64_t attrib_bufs_infos;
uint64_t attribs_descs;
uint64_t attribs_infos;
uint64_t first_vertex_sysval;
uint64_t first_instance_sysval;
uint64_t raw_vertex_offset_sysval;
uint64_t idvs_job;
uint64_t vertex_job;
uint64_t tiler_job;
} PACKED;
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, index_buffer_ptr) == 8, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, index_min_max_res) == 16, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, index_size) == 24, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, primitive_vertex_count) == 28, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attrib_bufs_valid) == 32, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attribs_valid) == 36, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, varying_bufs_descs) == 40, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, varying_bufs_info) == 48, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attrib_bufs_descs) == 56, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attrib_bufs_infos) == 64, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attribs_descs) == 72, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attribs_infos) == 80, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, first_vertex_sysval) == 88, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, first_instance_sysval) == 96, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, raw_vertex_offset_sysval) == 104, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, idvs_job) == 112, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, vertex_job) == 120, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, tiler_job) == 128, "");
static_assert(sizeof(struct panlib_draw_indexed_indirect_helper_args) == 136, "");
struct panlib_draw_index_minmax_search_helper_args {
uint64_t index_buffer_ptr;
uint64_t cmd;
uint64_t min_ptr;
uint64_t max_ptr;
} PACKED;
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, index_buffer_ptr) == 0, "");
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, cmd) == 8, "");
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, min_ptr) == 16, "");
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, max_ptr) == 24, "");
static_assert(sizeof(struct panlib_draw_index_minmax_search_helper_args) == 32, "");
struct panlib_indirect_dispatch_args {
uint64_t cmd;
uint32_t size_x;
uint32_t size_y;
uint32_t size_z;
uint8_t _pad4[4];
uint64_t indirect_job;
uint64_t num_wg_sysval_x;
uint64_t num_wg_sysval_y;
uint64_t num_wg_sysval_z;
} PACKED;
static_assert(offsetof(struct panlib_indirect_dispatch_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_x) == 8, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_y) == 12, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_z) == 16, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, indirect_job) == 24, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_x) == 32, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_y) == 40, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_z) == 48, "");
static_assert(sizeof(struct panlib_indirect_dispatch_args) == 56, "");
enum libpan_shaders_program {
PANLIB_CLEAR_AFBC_METADATA = 0,
PANLIB_COPY_QUERY_RESULT = 1,
PANLIB_CLEAR_QUERY_RESULT = 2,
PANLIB_DRAW_INDIRECT_HELPER = 3,
PANLIB_DRAW_INDEXED_INDIRECT_HELPER = 4,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_0 = 5,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_1 = 6,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_2 = 7,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_3 = 8,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_4 = 9,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_5 = 10,
PANLIB_INDIRECT_DISPATCH = 11,
LIBPAN_SHADERS_NUM_PROGRAMS,
};
static inline unsigned
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER(unsigned index_bytes_log2__3, unsigned primitive_restart__2)
{
assert(index_bytes_log2__3 < 3);
assert(primitive_restart__2 < 2);
unsigned idx = primitive_restart__2;
idx = (idx * 3) + index_bytes_log2__3;
assert(idx < 6);
return PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_0 + idx;
}
#define panlib_clear_afbc_metadata_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_afbc_metadata_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_afbc_metadata(_context, _grid, _barrier, p, layer_or_slice_stride) do { \
struct panlib_clear_afbc_metadata_args _args = {p, layer_or_slice_stride};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_copy_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, dst_addr, dst_stride, query_type, flags, report_count) do { \
struct panlib_copy_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, {0}, dst_addr, dst_stride, query_type, flags, report_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, report_count, availaible_value) do { \
struct panlib_clear_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, report_count, availaible_value};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indirect_helper_struct(_context, _grid, _barrier, _data) do { \
struct panlib_draw_indirect_helper_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indirect_helper(_context, _grid, _barrier, cmd, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attrib_bufs_valid, attribs_valid, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job, primitive_vertex_count) do { \
struct panlib_draw_indirect_helper_args _args = {cmd, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attrib_bufs_valid, attribs_valid, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job, primitive_vertex_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indexed_indirect_helper_struct(_context, _grid, _barrier, _data) do { \
struct panlib_draw_indexed_indirect_helper_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEXED_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indexed_indirect_helper(_context, _grid, _barrier, cmd, index_buffer_ptr, index_min_max_res, index_size, primitive_vertex_count, attrib_bufs_valid, attribs_valid, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job) do { \
struct panlib_draw_indexed_indirect_helper_args _args = {cmd, index_buffer_ptr, index_min_max_res, index_size, primitive_vertex_count, attrib_bufs_valid, attribs_valid, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEXED_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_index_minmax_search_helper_struct(_context, _grid, _barrier, _data, index_bytes_log2__3, primitive_restart__2) do { \
struct panlib_draw_index_minmax_search_helper_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER(index_bytes_log2__3, primitive_restart__2), &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_index_minmax_search_helper(_context, _grid, _barrier, index_buffer_ptr, cmd, min_ptr, max_ptr, index_bytes_log2__3, primitive_restart__2) do { \
struct panlib_draw_index_minmax_search_helper_args _args = {index_buffer_ptr, cmd, min_ptr, max_ptr};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER(index_bytes_log2__3, primitive_restart__2), &_args, sizeof(_args)); \
} while(0);
#define panlib_indirect_dispatch_struct(_context, _grid, _barrier, _data) do { \
struct panlib_indirect_dispatch_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_INDIRECT_DISPATCH, &_args, sizeof(_args)); \
} while(0);
#define panlib_indirect_dispatch(_context, _grid, _barrier, cmd, size_x, size_y, size_z, indirect_job, num_wg_sysval_x, num_wg_sysval_y, num_wg_sysval_z) do { \
struct panlib_indirect_dispatch_args _args = {cmd, size_x, size_y, size_z, {0}, indirect_job, num_wg_sysval_x, num_wg_sysval_y, num_wg_sysval_z};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_INDIRECT_DISPATCH, &_args, sizeof(_args)); \
} while(0);
extern const uint32_t *libpan_shaders_default_v6[LIBPAN_SHADERS_NUM_PROGRAMS];

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,283 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
struct panlib_clear_afbc_metadata_args {
uint64_t p;
uint32_t layer_or_slice_stride;
} PACKED;
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, p) == 0, "");
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, layer_or_slice_stride) == 8, "");
static_assert(sizeof(struct panlib_clear_afbc_metadata_args) == 12, "");
struct panlib_copy_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint8_t _pad5[4];
uint64_t dst_addr;
uint64_t dst_stride;
uint32_t query_type;
uint32_t flags;
uint32_t report_count;
} PACKED;
static_assert(offsetof(struct panlib_copy_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_copy_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_copy_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_copy_query_result_args, dst_addr) == 32, "");
static_assert(offsetof(struct panlib_copy_query_result_args, dst_stride) == 40, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_type) == 48, "");
static_assert(offsetof(struct panlib_copy_query_result_args, flags) == 52, "");
static_assert(offsetof(struct panlib_copy_query_result_args, report_count) == 56, "");
static_assert(sizeof(struct panlib_copy_query_result_args) == 60, "");
struct panlib_clear_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint32_t report_count;
uint32_t availaible_value;
} PACKED;
static_assert(offsetof(struct panlib_clear_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_clear_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_clear_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_clear_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_clear_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_clear_query_result_args, report_count) == 28, "");
static_assert(offsetof(struct panlib_clear_query_result_args, availaible_value) == 32, "");
static_assert(sizeof(struct panlib_clear_query_result_args) == 36, "");
struct panlib_draw_indirect_helper_args {
uint64_t cmd;
uint64_t varying_bufs_descs;
uint64_t varying_bufs_info;
uint64_t attrib_bufs_descs;
uint64_t attrib_bufs_infos;
uint32_t attrib_bufs_valid;
uint32_t attribs_valid;
uint64_t attribs_descs;
uint64_t attribs_infos;
uint64_t first_vertex_sysval;
uint64_t first_instance_sysval;
uint64_t raw_vertex_offset_sysval;
uint64_t idvs_job;
uint64_t vertex_job;
uint64_t tiler_job;
uint32_t primitive_vertex_count;
} PACKED;
static_assert(offsetof(struct panlib_draw_indirect_helper_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, varying_bufs_descs) == 8, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, varying_bufs_info) == 16, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attrib_bufs_descs) == 24, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attrib_bufs_infos) == 32, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attrib_bufs_valid) == 40, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attribs_valid) == 44, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attribs_descs) == 48, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, attribs_infos) == 56, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, first_vertex_sysval) == 64, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, first_instance_sysval) == 72, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, raw_vertex_offset_sysval) == 80, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, idvs_job) == 88, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, vertex_job) == 96, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, tiler_job) == 104, "");
static_assert(offsetof(struct panlib_draw_indirect_helper_args, primitive_vertex_count) == 112, "");
static_assert(sizeof(struct panlib_draw_indirect_helper_args) == 116, "");
struct panlib_draw_indexed_indirect_helper_args {
uint64_t cmd;
uint64_t index_buffer_ptr;
uint64_t index_min_max_res;
uint32_t index_size;
uint32_t primitive_vertex_count;
uint32_t attrib_bufs_valid;
uint32_t attribs_valid;
uint64_t varying_bufs_descs;
uint64_t varying_bufs_info;
uint64_t attrib_bufs_descs;
uint64_t attrib_bufs_infos;
uint64_t attribs_descs;
uint64_t attribs_infos;
uint64_t first_vertex_sysval;
uint64_t first_instance_sysval;
uint64_t raw_vertex_offset_sysval;
uint64_t idvs_job;
uint64_t vertex_job;
uint64_t tiler_job;
} PACKED;
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, index_buffer_ptr) == 8, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, index_min_max_res) == 16, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, index_size) == 24, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, primitive_vertex_count) == 28, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attrib_bufs_valid) == 32, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attribs_valid) == 36, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, varying_bufs_descs) == 40, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, varying_bufs_info) == 48, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attrib_bufs_descs) == 56, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attrib_bufs_infos) == 64, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attribs_descs) == 72, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, attribs_infos) == 80, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, first_vertex_sysval) == 88, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, first_instance_sysval) == 96, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, raw_vertex_offset_sysval) == 104, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, idvs_job) == 112, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, vertex_job) == 120, "");
static_assert(offsetof(struct panlib_draw_indexed_indirect_helper_args, tiler_job) == 128, "");
static_assert(sizeof(struct panlib_draw_indexed_indirect_helper_args) == 136, "");
struct panlib_draw_index_minmax_search_helper_args {
uint64_t index_buffer_ptr;
uint64_t cmd;
uint64_t min_ptr;
uint64_t max_ptr;
} PACKED;
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, index_buffer_ptr) == 0, "");
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, cmd) == 8, "");
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, min_ptr) == 16, "");
static_assert(offsetof(struct panlib_draw_index_minmax_search_helper_args, max_ptr) == 24, "");
static_assert(sizeof(struct panlib_draw_index_minmax_search_helper_args) == 32, "");
struct panlib_indirect_dispatch_args {
uint64_t cmd;
uint32_t size_x;
uint32_t size_y;
uint32_t size_z;
uint8_t _pad4[4];
uint64_t indirect_job;
uint64_t num_wg_sysval_x;
uint64_t num_wg_sysval_y;
uint64_t num_wg_sysval_z;
} PACKED;
static_assert(offsetof(struct panlib_indirect_dispatch_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_x) == 8, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_y) == 12, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_z) == 16, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, indirect_job) == 24, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_x) == 32, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_y) == 40, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_z) == 48, "");
static_assert(sizeof(struct panlib_indirect_dispatch_args) == 56, "");
enum libpan_shaders_program {
PANLIB_CLEAR_AFBC_METADATA = 0,
PANLIB_COPY_QUERY_RESULT = 1,
PANLIB_CLEAR_QUERY_RESULT = 2,
PANLIB_DRAW_INDIRECT_HELPER = 3,
PANLIB_DRAW_INDEXED_INDIRECT_HELPER = 4,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_0 = 5,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_1 = 6,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_2 = 7,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_3 = 8,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_4 = 9,
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_5 = 10,
PANLIB_INDIRECT_DISPATCH = 11,
LIBPAN_SHADERS_NUM_PROGRAMS,
};
static inline unsigned
PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER(unsigned index_bytes_log2__3, unsigned primitive_restart__2)
{
assert(index_bytes_log2__3 < 3);
assert(primitive_restart__2 < 2);
unsigned idx = primitive_restart__2;
idx = (idx * 3) + index_bytes_log2__3;
assert(idx < 6);
return PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER_0 + idx;
}
#define panlib_clear_afbc_metadata_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_afbc_metadata_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_afbc_metadata(_context, _grid, _barrier, p, layer_or_slice_stride) do { \
struct panlib_clear_afbc_metadata_args _args = {p, layer_or_slice_stride};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_copy_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, dst_addr, dst_stride, query_type, flags, report_count) do { \
struct panlib_copy_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, {0}, dst_addr, dst_stride, query_type, flags, report_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, report_count, availaible_value) do { \
struct panlib_clear_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, report_count, availaible_value};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indirect_helper_struct(_context, _grid, _barrier, _data) do { \
struct panlib_draw_indirect_helper_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indirect_helper(_context, _grid, _barrier, cmd, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attrib_bufs_valid, attribs_valid, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job, primitive_vertex_count) do { \
struct panlib_draw_indirect_helper_args _args = {cmd, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attrib_bufs_valid, attribs_valid, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job, primitive_vertex_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indexed_indirect_helper_struct(_context, _grid, _barrier, _data) do { \
struct panlib_draw_indexed_indirect_helper_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEXED_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_indexed_indirect_helper(_context, _grid, _barrier, cmd, index_buffer_ptr, index_min_max_res, index_size, primitive_vertex_count, attrib_bufs_valid, attribs_valid, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job) do { \
struct panlib_draw_indexed_indirect_helper_args _args = {cmd, index_buffer_ptr, index_min_max_res, index_size, primitive_vertex_count, attrib_bufs_valid, attribs_valid, varying_bufs_descs, varying_bufs_info, attrib_bufs_descs, attrib_bufs_infos, attribs_descs, attribs_infos, first_vertex_sysval, first_instance_sysval, raw_vertex_offset_sysval, idvs_job, vertex_job, tiler_job};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEXED_INDIRECT_HELPER, &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_index_minmax_search_helper_struct(_context, _grid, _barrier, _data, index_bytes_log2__3, primitive_restart__2) do { \
struct panlib_draw_index_minmax_search_helper_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER(index_bytes_log2__3, primitive_restart__2), &_args, sizeof(_args)); \
} while(0);
#define panlib_draw_index_minmax_search_helper(_context, _grid, _barrier, index_buffer_ptr, cmd, min_ptr, max_ptr, index_bytes_log2__3, primitive_restart__2) do { \
struct panlib_draw_index_minmax_search_helper_args _args = {index_buffer_ptr, cmd, min_ptr, max_ptr};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_DRAW_INDEX_MINMAX_SEARCH_HELPER(index_bytes_log2__3, primitive_restart__2), &_args, sizeof(_args)); \
} while(0);
#define panlib_indirect_dispatch_struct(_context, _grid, _barrier, _data) do { \
struct panlib_indirect_dispatch_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_INDIRECT_DISPATCH, &_args, sizeof(_args)); \
} while(0);
#define panlib_indirect_dispatch(_context, _grid, _barrier, cmd, size_x, size_y, size_z, indirect_job, num_wg_sysval_x, num_wg_sysval_y, num_wg_sysval_z) do { \
struct panlib_indirect_dispatch_args _args = {cmd, size_x, size_y, size_z, {0}, indirect_job, num_wg_sysval_x, num_wg_sysval_y, num_wg_sysval_z};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_INDIRECT_DISPATCH, &_args, sizeof(_args)); \
} while(0);
extern const uint32_t *libpan_shaders_default_v7[LIBPAN_SHADERS_NUM_PROGRAMS];

View file

@ -0,0 +1,741 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#include "libpan_shaders_v9.h"
static const uint32_t panlib_clear_afbc_metadata_0_default[572] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x00000010, 0x3f800000, 0x00000000,
0x3ec00000, 0x3ec00000, 0x00000000, 0x00000000,
0x3f800000, 0x00000100, 0x00000002, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x30000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000009,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000100,
0x000a887d, 0x00a0c000, 0x00004086, 0x00a8c000,
0x00c08600, 0x00f0c104, 0x00008741, 0x00a8c100,
0x11c0c93c, 0x00b4c201, 0x11c0cf7c, 0x00b4c300,
0x00004200, 0x00a8c200, 0x00004341, 0x00a8c100,
0x00c04002, 0x00f0c004, 0x00004140, 0x00a8c000,
0x000000c0, 0x0091c400, 0x000000c0, 0x0091c500,
0x000000c0, 0x0091c600, 0x000000c0, 0x0091c700,
0x00000040, 0x0091c300, 0x38000042, 0x78614408,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
static const uint32_t panlib_copy_query_result_0_default[796] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x0000007f, 0x40c00000, 0x00000000,
0x40420000, 0x40400000, 0x00000000, 0x00000000,
0x40c00000, 0x00000480, 0x00000002, 0x00000001,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x10000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000015,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000480,
0x80c08c3c, 0x00f0c004, 0x00007c40, 0x501fc030,
0x00003c8b, 0x00a8c000, 0x0014003c, 0x0090c100,
0x00140090, 0x0090c200, 0x3014003c, 0x0090c300,
0x30140090, 0x0090c400, 0x000a0201, 0x00a0c500,
0x000a0441, 0x00a0c100, 0x000a4203, 0x00a0c200,
0x000a4443, 0x00a0c300, 0x000501c0, 0x00a1c400,
0x00004405, 0x00a8c400, 0x00c04504, 0x00f0c504,
0x00004543, 0x00a8c300, 0x30140041, 0x0090c100,
0x00004143, 0x00a8c100, 0x000502c0, 0x00a1c300,
0x00004304, 0x00a8c300, 0x00c04443, 0x00f0c304,
0x00004341, 0x00a8c100, 0x30140042, 0x0090c200,
0x00004241, 0x00a8c100, 0x000a903c, 0x00a0c200,
0x000a917c, 0x00a0c300, 0x00004341, 0x00a8c100,
0x0000428e, 0x00a8c200, 0x0000418f, 0x00a8c100,
0x00c08e02, 0x00f0c304, 0x00004143, 0x00a8c100,
0x00140000, 0x0090c300, 0x0014008a, 0x0090c400,
0x30140000, 0x0090c500, 0x3014008a, 0x0090c600,
0x000a0403, 0x00a0c700, 0x000a0643, 0x00a0c300,
0x000a4405, 0x00a0c400, 0x000a4645, 0x00a0c500,
0x000503c0, 0x00a1c600, 0x00004607, 0x00a8c600,
0x00c04706, 0x00f0c704, 0x00004745, 0x00a8c500,
0x30140043, 0x0090c300, 0x00004345, 0x00a8c300,
0x000504c0, 0x00a1c500, 0x00004506, 0x00a8c500,
0x00c04645, 0x00f0c504, 0x00004543, 0x00a8c300,
0x30140044, 0x0090c400, 0x00004443, 0x00a8c300,
0x000a8a00, 0x00a0c400, 0x00004486, 0x00a8c400,
0x00004387, 0x00a8c300, 0x00c08604, 0x00f0c504,
0x00004345, 0x00a8c300, 0x19c0c800, 0x00b4c501,
0x19c0cf40, 0x00b4c000, 0x00004588, 0x00a8c500,
0x00004089, 0x00a8c000, 0x00c08805, 0x00f0c604,
0x00004046, 0x00a8c000, 0x00000045, 0x0091c600,
0x00000040, 0x0091c700, 0x18000046, 0x00608082,
0x000008c0, 0x0110c500, 0x1045c093, 0x08b4c501,
0x00450045, 0x0150c501, 0x80c0c045, 0x00f0c503,
0x80c0c092, 0x00f0c600, 0x1005c006, 0x00b4c701,
0x00001c47, 0x501fc030, 0x000000c0, 0x0110c700,
0x000000c0, 0x0110c800, 0x000000c0, 0x5110c900,
0x80c09407, 0x00f0ca02, 0x00000e4a, 0x501fc020,
0x1dc0c807, 0x00b4ca01, 0x15c0cf07, 0x00b4cb00,
0x00004a04, 0x00a8ca00, 0x00004b03, 0x00a8cb00,
0x00c0040a, 0x00f0cc04, 0x00004b4c, 0x00a8cb00,
0x6800004a, 0x10608af4, 0x00004b49, 0x00a8c900,
0x00004a08, 0x00a8ca00, 0x00c0480a, 0x00f0c804,
0x00004948, 0x00a8c900, 0x00000147, 0x0110c700,
0x0000004a, 0x0091c800, 0xfffff0c0, 0x501fc017,
0x000001c0, 0x0110c300, 0x1043c093, 0x00b4c301,
0x80c0c043, 0x00f0c300, 0x00000343, 0x501fc030,
0x00000001, 0x0091c300, 0x98000002, 0x00614802,
0x000002c0, 0x501fc010, 0x00000001, 0x0091c300,
0x28000002, 0x50614804, 0x1146c0c0, 0x00b4c309,
0x1043c045, 0x00b4c301, 0x000004c0, 0x0110c400,
0x1044c093, 0x00b4c401, 0x1143c0c0, 0x00b4c309,
0x80c0c044, 0x00f0c403, 0x1043c044, 0x00b4c301,
0x00001343, 0x501fc030, 0x000001c0, 0x0110c300,
0x1043c093, 0x00b4c301, 0x80c0c043, 0x00f0c300,
0x00c0c040, 0x00f0c003, 0x00000743, 0x501fc030,
0x00000402, 0x0110c300, 0x00c04203, 0x00f0c204,
0x00004142, 0x00a8c100, 0x00000043, 0x0091c200,
0x00000041, 0x2891c300, 0x58000042, 0x00614002,
0x000007c0, 0x501fc010, 0x00000802, 0x0110c300,
0x00c04203, 0x00f0c204, 0x00004142, 0x00a8c100,
0x00000040, 0x0091c400, 0x000000c0, 0x0091c500,
0x00000043, 0x2891c000, 0xa8000040, 0x50614404,
0x00000000, 0x7800c000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
static const uint32_t panlib_clear_query_result_0_default[636] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x00000035, 0x40000000, 0x00000000,
0x3fa80000, 0x3f900000, 0x00000000, 0x00000000,
0x40000000, 0x00000200, 0x00000002, 0x00000001,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x10000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x0000000f,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000200,
0x80c08c3c, 0x00f0c004, 0x0000008e, 0x0091c100,
0x00003140, 0x501fc030, 0x00007c8b, 0x00a8c000,
0x19c0c800, 0x00b4c201, 0x00004288, 0x00a8c200,
0x19c0cf00, 0x00b4c300, 0x00004389, 0x00a8c300,
0x00c08802, 0x00f0c404, 0x00004344, 0x00a8c300,
0x18000042, 0x00614102, 0x3014008a, 0x0090c100,
0x00140000, 0x0090c200, 0x0014008a, 0x0090c300,
0x000a0102, 0x00a0c400, 0x000a0342, 0x00a0c200,
0x30140000, 0x0090c500, 0x000a0105, 0x00a0c100,
0x000a4345, 0x00a0c300, 0x000504c0, 0x00a1c500,
0x00004502, 0x00a8c500, 0x00c04205, 0x00f0c204,
0x00004201, 0x00a8c100, 0x000503c0, 0x00a1c200,
0x00004205, 0x00a8c200, 0x00c04542, 0x00f0c204,
0x30140044, 0x0090c400, 0x00004401, 0x00a8c100,
0x00004201, 0x00a8c100, 0x30140043, 0x0090c200,
0x00004201, 0x00a8c100, 0x000a8a40, 0x00a0c000,
0x00004086, 0x00a8c000, 0x00000187, 0x00a8c100,
0x00c08600, 0x00f0c204, 0x00000142, 0x00a8c100,
0x000000c0, 0x5110c200, 0x80c08d02, 0x00f0c302,
0x00000d43, 0x501fc020, 0x1dc0c802, 0x00b4c301,
0x15c0cf02, 0x00b4c400, 0x00004300, 0x00a8c300,
0x00004401, 0x00a8c400, 0x00c00003, 0x00f0c504,
0x00004445, 0x00a8c400, 0x000000c0, 0x0091c600,
0x000000c0, 0x0091c700, 0x00000043, 0x0091c800,
0x00000044, 0x1891c900, 0x68000048, 0x00614604,
0x00000142, 0x0110c200, 0xfffff1c0, 0x501fc017,
0x00000000, 0x7800c000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
static const uint32_t panlib_indirect_dispatch_0_default[860] = {
0x00000005, 0x00000020, 0x00000000, 0x00000000,
0x00000002, 0x000000a9, 0x42040000, 0x00000000,
0x40600000, 0x40400000, 0x00000000, 0x00000000,
0x42040000, 0x00000580, 0x00000002, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000014,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000001, 0x00000001, 0x00000580,
0x18000086, 0x00608082, 0x00000486, 0x0110c100,
0x00c08601, 0x00f0c204, 0x00008742, 0x00a8c200,
0x00000041, 0x0091c400, 0x00000042, 0x0891c500,
0x58000044, 0x00608182, 0x00000886, 0x0110c200,
0x00c08602, 0x00f0c304, 0x00008743, 0x10a8c300,
0x98000042, 0x00608282, 0x000a0100, 0x20a0c300,
0x000a0243, 0x00a0c300, 0x80c0c043, 0x00f0c300,
0x000004c0, 0x0110c400, 0x000001c0, 0x0110c500,
0x4544c003, 0x0150c400, 0x1dc0c444, 0x00b4c401,
0x1800008c, 0x08608582, 0x5800008c, 0x00614502,
0x0000048c, 0x0110c500, 0x00c08c05, 0x00f0c604,
0x00008d46, 0x00a8c600, 0x00000005, 0x0091c800,
0x00000006, 0x1091c900, 0x98000048, 0x00608782,
0x00000045, 0x0091c800, 0x00000046, 0x2091c900,
0x18000048, 0x00614702, 0x0000088c, 0x0110c500,
0x00c08c05, 0x00f0c604, 0x00008d46, 0x00a8c600,
0x00000005, 0x0091c800, 0x00000006, 0x0891c900,
0x58000048, 0x00608782, 0x00000045, 0x0091c800,
0x00000046, 0x1091c900, 0x98000048, 0x00614702,
0x00000c8c, 0x0110c500, 0x00c08c05, 0x00f0c604,
0x00008d46, 0x00a8c600, 0x00000005, 0x0091c800,
0x00000006, 0x2091c900, 0x18000048, 0x00608782,
0x00000045, 0x0091c800, 0x00000046, 0x0891c900,
0x58000048, 0x00614702, 0x0000108c, 0x0110c500,
0x00c08c05, 0x00f0c604, 0x00008d46, 0x00a8c600,
0x00000005, 0x0091c800, 0x00000006, 0x1091c900,
0x98000048, 0x20608782, 0x1144c047, 0x00b4c401,
0x00000045, 0x0091c800, 0x00000046, 0x0091c900,
0x18000048, 0x00614402, 0x0000148c, 0x0110c400,
0x00c08c04, 0x00f0c504, 0x00008d45, 0x08a8c500,
0x58000004, 0x10608682, 0x98000044, 0x00614602,
0x0000188c, 0x0110c400, 0x00c08c04, 0x00f0c504,
0x00008d45, 0x20a8c500, 0x18000004, 0x08608682,
0x58000044, 0x00614602, 0x00001c8c, 0x0110c400,
0x00c08c04, 0x00f0c504, 0x00008d45, 0x10a8c500,
0x98000004, 0x20608682, 0x18000044, 0x00614602,
0x1143c0c0, 0x00b4c309, 0x00005e43, 0x501fc030,
0x0000208c, 0x0110c300, 0x00c08c03, 0x00f0c404,
0x00008d44, 0x00a8c400, 0x00000003, 0x0091c600,
0x00000004, 0x0891c700, 0x68000046, 0x006086f4,
0x000001c0, 0x1110c500, 0x1dc0d006, 0x00b4c800,
0x1005c048, 0x00b4c801, 0x010101c0, 0x0110c901,
0x1049c048, 0x00b6c841, 0x0003ffc0, 0x0110c900,
0x19c0ca06, 0x00b4ca00, 0x1009c04a, 0x00b4ca01,
0x11c0cd06, 0x00b4cb00, 0x1009c046, 0x00b4c601,
0x1049c04b, 0x00b4c901, 0x19c0ca4a, 0x00b4ca01,
0x114ac046, 0x00b4c601, 0x000003c0, 0x0110ca00,
0x19c0cb07, 0x00b4cb00, 0x104ac04b, 0x00b4ca01,
0x003fffc0, 0x0110cb00, 0x104bc047, 0x00b4c701,
0x0000c048, 0x00a2c840, 0x80c0c048, 0x00f2c803,
0x0000c048, 0x00a2c840, 0x45c0c048, 0x0150c500,
0x11c0cd49, 0x00b4c801, 0x1148c046, 0x00b4c601,
0x19c0cb4a, 0x00b4c801, 0x1148c047, 0x00b4c701,
0x1dc0d045, 0x00b4c501, 0x1145c046, 0x00b4c501,
0x0000708c, 0x0110c600, 0x1cc0c606, 0x00f0c804,
0x00008d48, 0x00a8c800, 0x00000045, 0x0091ca00,
0x00000047, 0x0091cb00, 0x00000000, 0x0091cc00,
0x00000001, 0x0091cd00, 0x00000008, 0x0091c700,
0xb8000006, 0x0060b0f8, 0x00000043, 0x0091ce00,
0x00000044, 0x2091cf00, 0x3800004e, 0x00614a08,
0x0000308c, 0x0110c300, 0x10c0c603, 0x00f0c404,
0x00008d44, 0x00a8c400, 0x00000003, 0x0091ca00,
0x00000004, 0x0891cb00, 0x7800004a, 0x10608af8,
0x00000002, 0x0091ca00, 0x00000043, 0x0091ce00,
0x00000044, 0x0091cf00, 0xb800004e, 0x00614a08,
0x0000408c, 0x0110c300, 0x1cc0d403, 0x00f0c404,
0x00008d44, 0x00a8c400, 0x00000003, 0x0091ca00,
0x00000004, 0x2091cb00, 0x2800004a, 0x08608af4,
0x0010004b, 0x0090c500, 0x00000045, 0x0091cb00,
0x000000c0, 0x0091cc00, 0x000000c0, 0x0091cd00,
0x00000043, 0x0091ce00, 0x00000044, 0x0091cf00,
0x7800004e, 0x00614a08, 0x0000508c, 0x0110c300,
0x14c0c603, 0x00f0c404, 0x00008d44, 0x00a8c400,
0x000000c0, 0x0091ca00, 0x000000c0, 0x0091cb00,
0x000000c0, 0x0091cc00, 0x000000c0, 0x0091cd00,
0x00000043, 0x0091ce00, 0x00000044, 0x1091cf00,
0xb800004e, 0x00614a08, 0x0000608c, 0x0110c300,
0x18c0c603, 0x00f0c404, 0x00008d44, 0x00a8c400,
0x00000003, 0x0091ca00, 0x00000004, 0x2091cb00,
0x3800004a, 0x00608af8, 0x00000043, 0x0091ce00,
0x00000044, 0x0891cf00, 0x7800004e, 0x00614a08,
0x00000046, 0x0091c400, 0x00000048, 0x1091c500,
0xb8000044, 0x20617008, 0x1800008e, 0x08614002,
0x58000090, 0x10614102, 0x98000092, 0x50614202,
0x00000000, 0x7800c000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
const uint32_t *libpan_shaders_default_v9[LIBPAN_SHADERS_NUM_PROGRAMS] = {
[PANLIB_CLEAR_AFBC_METADATA] = panlib_clear_afbc_metadata_0_default,
[PANLIB_COPY_QUERY_RESULT] = panlib_copy_query_result_0_default,
[PANLIB_CLEAR_QUERY_RESULT] = panlib_clear_query_result_0_default,
[PANLIB_INDIRECT_DISPATCH] = panlib_indirect_dispatch_0_default,
};

View file

@ -0,0 +1,139 @@
/*
* Copyright Collabora Ltd
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include <stdint.h>
#pragma once
#include "util/macros.h"
struct panlib_clear_afbc_metadata_args {
uint64_t p;
uint32_t layer_or_slice_stride;
} PACKED;
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, p) == 0, "");
static_assert(offsetof(struct panlib_clear_afbc_metadata_args, layer_or_slice_stride) == 8, "");
static_assert(sizeof(struct panlib_clear_afbc_metadata_args) == 12, "");
struct panlib_copy_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint8_t _pad5[4];
uint64_t dst_addr;
uint64_t dst_stride;
uint32_t query_type;
uint32_t flags;
uint32_t report_count;
} PACKED;
static_assert(offsetof(struct panlib_copy_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_copy_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_copy_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_copy_query_result_args, dst_addr) == 32, "");
static_assert(offsetof(struct panlib_copy_query_result_args, dst_stride) == 40, "");
static_assert(offsetof(struct panlib_copy_query_result_args, query_type) == 48, "");
static_assert(offsetof(struct panlib_copy_query_result_args, flags) == 52, "");
static_assert(offsetof(struct panlib_copy_query_result_args, report_count) == 56, "");
static_assert(sizeof(struct panlib_copy_query_result_args) == 60, "");
struct panlib_clear_query_result_args {
uint64_t pool_addr;
uint64_t available_addr;
uint32_t query_stride;
uint32_t first_query;
uint32_t query_count;
uint32_t report_count;
uint32_t availaible_value;
} PACKED;
static_assert(offsetof(struct panlib_clear_query_result_args, pool_addr) == 0, "");
static_assert(offsetof(struct panlib_clear_query_result_args, available_addr) == 8, "");
static_assert(offsetof(struct panlib_clear_query_result_args, query_stride) == 16, "");
static_assert(offsetof(struct panlib_clear_query_result_args, first_query) == 20, "");
static_assert(offsetof(struct panlib_clear_query_result_args, query_count) == 24, "");
static_assert(offsetof(struct panlib_clear_query_result_args, report_count) == 28, "");
static_assert(offsetof(struct panlib_clear_query_result_args, availaible_value) == 32, "");
static_assert(sizeof(struct panlib_clear_query_result_args) == 36, "");
struct panlib_indirect_dispatch_args {
uint64_t cmd;
uint32_t size_x;
uint32_t size_y;
uint32_t size_z;
uint8_t _pad4[4];
uint64_t indirect_job;
uint64_t num_wg_sysval_x;
uint64_t num_wg_sysval_y;
uint64_t num_wg_sysval_z;
} PACKED;
static_assert(offsetof(struct panlib_indirect_dispatch_args, cmd) == 0, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_x) == 8, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_y) == 12, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, size_z) == 16, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, indirect_job) == 24, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_x) == 32, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_y) == 40, "");
static_assert(offsetof(struct panlib_indirect_dispatch_args, num_wg_sysval_z) == 48, "");
static_assert(sizeof(struct panlib_indirect_dispatch_args) == 56, "");
enum libpan_shaders_program {
PANLIB_CLEAR_AFBC_METADATA = 0,
PANLIB_COPY_QUERY_RESULT = 1,
PANLIB_CLEAR_QUERY_RESULT = 2,
PANLIB_INDIRECT_DISPATCH = 3,
LIBPAN_SHADERS_NUM_PROGRAMS,
};
#define panlib_clear_afbc_metadata_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_afbc_metadata_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_afbc_metadata(_context, _grid, _barrier, p, layer_or_slice_stride) do { \
struct panlib_clear_afbc_metadata_args _args = {p, layer_or_slice_stride};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_AFBC_METADATA, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_copy_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_copy_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, dst_addr, dst_stride, query_type, flags, report_count) do { \
struct panlib_copy_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, {0}, dst_addr, dst_stride, query_type, flags, report_count};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_COPY_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_query_result_struct(_context, _grid, _barrier, _data) do { \
struct panlib_clear_query_result_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_clear_query_result(_context, _grid, _barrier, pool_addr, available_addr, query_stride, first_query, query_count, report_count, availaible_value) do { \
struct panlib_clear_query_result_args _args = {pool_addr, available_addr, query_stride, first_query, query_count, report_count, availaible_value};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_CLEAR_QUERY_RESULT, &_args, sizeof(_args)); \
} while(0);
#define panlib_indirect_dispatch_struct(_context, _grid, _barrier, _data) do { \
struct panlib_indirect_dispatch_args _args = _data;\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_INDIRECT_DISPATCH, &_args, sizeof(_args)); \
} while(0);
#define panlib_indirect_dispatch(_context, _grid, _barrier, cmd, size_x, size_y, size_z, indirect_job, num_wg_sysval_x, num_wg_sysval_y, num_wg_sysval_z) do { \
struct panlib_indirect_dispatch_args _args = {cmd, size_x, size_y, size_z, {0}, indirect_job, num_wg_sysval_x, num_wg_sysval_y, num_wg_sysval_z};\
MESA_DISPATCH_PRECOMP(_context, _grid, _barrier, PANLIB_INDIRECT_DISPATCH, &_args, sizeof(_args)); \
} while(0);
extern const uint32_t *libpan_shaders_default_v9[LIBPAN_SHADERS_NUM_PROGRAMS];

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

View file

@ -0,0 +1,36 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
struct vtn_bindgen_dummy {
vtn_bindgen_dummy() {
/* Format strings:
*
*/
const uint32_t printf_0_blob[1] = {
0x00000000,
};
u_printf_singleton_init_or_ref();
u_printf_singleton_add_serialized((const void*)printf_0_blob, sizeof(printf_0_blob));
}
~vtn_bindgen_dummy() {
u_printf_singleton_decref();
}
};
static vtn_bindgen_dummy vtn_bindgen_dummy_instance;

View file

@ -0,0 +1,20 @@
/*
* Copyright Mesa3D Contributors
* SPDX-License-Identifier: MIT
*
* Autogenerated file, do not edit
*/
#pragma once
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
#include "util/u_printf.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,33 @@
/* Autogenerated file, DO NOT EDIT manually! generated by pan_gen_perf.py
*
* Copyright © 2021 Arm Limited
* Copyright © 2021 Collabora Ltd.
*
* 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.
*/
#ifndef PAN_PERF_METRICS_H
#define PAN_PERF_METRICS_H
#include "perf/pan_perf.h"
extern const struct pan_perf_config * pan_perf_configs[16];
#endif // PAN_PERF_METRICS_H

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,517 @@
/*
* Copyright © 2021 Igalia S.L.
*
* 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.
*/
#ifndef _PANVK_TRACEPOINTS_PERFETTO_H
#define _PANVK_TRACEPOINTS_PERFETTO_H
#ifndef ANDROID_LIBPERFETTO
#include <perfetto.h>
#else
#include <perfetto/tracing.h>
#include <perfetto/trace/clock_snapshot.pbzero.h>
#include <perfetto/trace/gpu/gpu_render_stage_event.pbzero.h>
#include <perfetto/trace/gpu/vulkan_api_event.pbzero.h>
#endif
UNUSED static const char *tracepoint_names[] = {
"begin_cmdbuf",
"end_cmdbuf",
"begin_meta",
"end_meta",
"begin_render",
"end_render",
"begin_dispatch",
"end_dispatch",
"begin_dispatch_indirect",
"end_dispatch_indirect",
"begin_barrier",
"end_barrier",
"begin_sync32_add",
"end_sync32_add",
"begin_sync64_add",
"end_sync64_add",
"begin_sync32_wait",
"end_sync32_wait",
"begin_sync64_wait",
"end_sync64_wait",
"begin_flush_cache",
"end_flush_cache",
};
typedef void (*trace_payload_as_extra_func)(perfetto::protos::pbzero::GpuRenderStageEvent *, const void*, const void*);
static void UNUSED
trace_payload_as_extra_begin_cmdbuf(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_cmdbuf *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_cmdbuf(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_cmdbuf *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("flags");
sprintf(buf, "0x%x", payload->flags);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_meta(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_meta *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_meta(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_meta *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_begin_render(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_render *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_render(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_render *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("flags");
sprintf(buf, "0x%x", payload->flags);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("width");
sprintf(buf, "%u", payload->width);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("height");
sprintf(buf, "%u", payload->height);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("nr_samples");
sprintf(buf, "%u", payload->nr_samples);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("rt_count");
sprintf(buf, "%u", payload->rt_count);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("rt0_format");
sprintf(buf, "%s", util_format_description((enum pipe_format)payload->rt0_format)->name);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("zs_format");
sprintf(buf, "%s", util_format_description((enum pipe_format)payload->zs_format)->name);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("s_format");
sprintf(buf, "%s", util_format_description((enum pipe_format)payload->s_format)->name);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("tile_size");
sprintf(buf, "%u", payload->tile_size);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_dispatch(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_dispatch *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_dispatch(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_dispatch *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("base_group_x");
sprintf(buf, "%u", payload->base_group_x);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("base_group_y");
sprintf(buf, "%u", payload->base_group_y);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("base_group_z");
sprintf(buf, "%u", payload->base_group_z);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("group_count_x");
sprintf(buf, "%u", payload->group_count_x);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("group_count_y");
sprintf(buf, "%u", payload->group_count_y);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("group_count_z");
sprintf(buf, "%u", payload->group_count_z);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("group_size_x");
sprintf(buf, "%u", payload->group_size_x);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("group_size_y");
sprintf(buf, "%u", payload->group_size_y);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("group_size_z");
sprintf(buf, "%u", payload->group_size_z);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_dispatch_indirect(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_dispatch_indirect *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_dispatch_indirect(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_dispatch_indirect *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("group_count");
const VkDispatchIndirectCommand* __group_count = (const VkDispatchIndirectCommand*)((uint8_t *)indirect_data + 0);
sprintf(buf, "%ux%ux%u", __group_count->x, __group_count->y, __group_count->z);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_barrier(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_barrier *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_barrier(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_barrier *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("sb_wait");
sprintf(buf, "0x%x", payload->sb_wait);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("sync_wait");
sprintf(buf, "0x%x", payload->sync_wait);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_sync32_add(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_sync32_add *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_sync32_add(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_sync32_add *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("sync_addr");
const uint64_t* __sync_addr = (const uint64_t*)((uint8_t *)indirect_data + 0);
sprintf(buf, "0x%" PRIx64 "", *__sync_addr);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("sync_val");
const uint32_t* __sync_val = (const uint32_t*)((uint8_t *)indirect_data + sizeof(uint64_t));
sprintf(buf, "%u", *__sync_val);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_sync64_add(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_sync64_add *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_sync64_add(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_sync64_add *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("sync_addr");
const uint64_t* __sync_addr = (const uint64_t*)((uint8_t *)indirect_data + 0);
sprintf(buf, "0x%" PRIx64 "", *__sync_addr);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("sync_val");
const uint64_t* __sync_val = (const uint64_t*)((uint8_t *)indirect_data + sizeof(uint64_t));
sprintf(buf, "%" PRIu64 "", *__sync_val);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_sync32_wait(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_sync32_wait *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_sync32_wait(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_sync32_wait *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("sync_addr");
const uint64_t* __sync_addr = (const uint64_t*)((uint8_t *)indirect_data + 0);
sprintf(buf, "0x%" PRIx64 "", *__sync_addr);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("sync_val");
const uint32_t* __sync_val = (const uint32_t*)((uint8_t *)indirect_data + sizeof(uint64_t));
sprintf(buf, "%u", *__sync_val);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("cond");
sprintf(buf, "%u", payload->cond);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_sync64_wait(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_sync64_wait *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_sync64_wait(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_sync64_wait *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("sync_addr");
const uint64_t* __sync_addr = (const uint64_t*)((uint8_t *)indirect_data + 0);
sprintf(buf, "0x%" PRIx64 "", *__sync_addr);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("sync_val");
const uint64_t* __sync_val = (const uint64_t*)((uint8_t *)indirect_data + sizeof(uint64_t));
sprintf(buf, "%" PRIu64 "", *__sync_val);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("cond");
sprintf(buf, "%u", payload->cond);
data->set_value(buf);
}
}
static void UNUSED
trace_payload_as_extra_begin_flush_cache(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_begin_flush_cache *payload,
const void *indirect_data)
{
}
static void UNUSED
trace_payload_as_extra_end_flush_cache(perfetto::protos::pbzero::GpuRenderStageEvent *event,
const struct trace_end_flush_cache *payload,
const void *indirect_data)
{
char buf[128];
{
auto data = event->add_extra_data();
data->set_name("l2");
sprintf(buf, "%u", payload->l2);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("lsc");
sprintf(buf, "%u", payload->lsc);
data->set_value(buf);
}
{
auto data = event->add_extra_data();
data->set_name("other");
sprintf(buf, "%u", payload->other);
data->set_value(buf);
}
}
#endif /* _PANVK_TRACEPOINTS_PERFETTO_H */

View file

@ -554,4 +554,849 @@ cc_library_static {
],
}
// ---------------------------------------------------------------------------
// Panfrost model library
// ---------------------------------------------------------------------------
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_model",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
srcs: ["model/pan_model.c"],
local_include_dirs: [
"src",
"src/panfrost/model",
"meson_generated/src",
],
}
// ---------------------------------------------------------------------------
// Panfrost kmod library
// ---------------------------------------------------------------------------
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_kmod",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
srcs: [
"lib/kmod/pan_kmod.c",
"lib/kmod/panfrost_kmod.c",
"lib/kmod/panthor_kmod.c",
],
}
// ---------------------------------------------------------------------------
// Per-architecture libpan libraries
// ---------------------------------------------------------------------------
// Each of these compiles pan_desc.c + pan_texture.c with -DPAN_ARCH=N
// The genxml pack headers are generated by the panfrost_genxml_* genrules
// arch v4 (T720, T760, T820, T830, T860)
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v4",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v4_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=4"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v5
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v5",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v5_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=5"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v6
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v6",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v6_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=6"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v7
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v7",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v7_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=7"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v9
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v9",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v9_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=9"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v10
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v10",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v10_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=10"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v12
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v12",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v12_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=12"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// arch v13
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_arch_v13",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v13_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=13"],
srcs: [
"lib/pan_blend.c",
"lib/pan_desc.c",
"lib/pan_earlyzs.c",
"lib/pan_texture.c",
],
}
// ---------------------------------------------------------------------------
// Per-architecture pixel format libraries
// ---------------------------------------------------------------------------
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v5",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v5_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=5"],
srcs: ["lib/pan_format.c"],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v6",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v6_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=6"],
srcs: ["lib/pan_format.c"],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v7",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v7_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=7"],
srcs: ["lib/pan_format.c"],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v9",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v9_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=9"],
srcs: ["lib/pan_format.c"],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v10",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v10_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=10"],
srcs: ["lib/pan_format.c"],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v12",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v12_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=12"],
srcs: ["lib/pan_format.c"],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_lib_format_v13",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_v13_pack_h",
"panfrost_genxml_common_pack_h",
],
cflags: ["-DPAN_ARCH=13"],
srcs: ["lib/pan_format.c"],
}
// ---------------------------------------------------------------------------
// Panfrost performance monitoring library
// ---------------------------------------------------------------------------
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_perf",
vendor: true,
host_supported: true,
defaults: ["mesa_common_defaults"],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
srcs: [
"perf/pan_perf.c",
"meson_generated/src/panfrost/perf/pan_perf_metrics.c",
],
local_include_dirs: [
"src/panfrost/perf",
"meson_generated/src/panfrost/perf",
],
}
// ---------------------------------------------------------------------------
// Per-architecture PanVK static libraries
// ---------------------------------------------------------------------------
// Each per-arch lib compiles the per-architecture GPU code + common vX files
// with -DPAN_ARCH=N. These are linked as whole_static_libs into vulkan.panfrost.
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_vulkan_v6",
vendor: true,
defaults: ["mesa_common_defaults"],
cflags: [
"-DPAN_ARCH=6",
"-DVK_USE_PLATFORM_ANDROID_KHR",
],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_common_pack_h",
"panfrost_genxml_v6_pack_h",
"panfrost_bi_opcodes_h_gen",
],
srcs: [
// bifrost arch files
"vulkan/bifrost/panvk_vX_meta_desc_copy.c",
// jm (job model) files
"vulkan/jm/panvk_vX_cmd_buffer.c",
"vulkan/jm/panvk_vX_cmd_dispatch.c",
"vulkan/jm/panvk_vX_cmd_draw.c",
"vulkan/jm/panvk_vX_cmd_event.c",
"vulkan/jm/panvk_vX_cmd_precomp.c",
"vulkan/jm/panvk_vX_cmd_query.c",
"vulkan/jm/panvk_vX_event.c",
"vulkan/jm/panvk_vX_gpu_queue.c",
// common per-arch files
"vulkan/panvk_vX_blend.c",
"vulkan/panvk_vX_buffer_view.c",
"vulkan/panvk_vX_cmd_desc_state.c",
"vulkan/panvk_vX_cmd_dispatch.c",
"vulkan/panvk_vX_cmd_draw.c",
"vulkan/panvk_vX_cmd_fb_preload.c",
"vulkan/panvk_vX_cmd_meta.c",
"vulkan/panvk_vX_cmd_push_constant.c",
"vulkan/panvk_vX_descriptor_set.c",
"vulkan/panvk_vX_descriptor_set_layout.c",
"vulkan/panvk_vX_device.c",
"vulkan/panvk_vX_image_view.c",
"vulkan/panvk_vX_nir_lower_descriptors.c",
"vulkan/panvk_vX_physical_device.c",
"vulkan/panvk_vX_precomp_cache.c",
"vulkan/panvk_vX_query_pool.c",
"vulkan/panvk_vX_sampler.c",
"vulkan/panvk_vX_shader.c",
// generated libpan sources
"meson_generated/src/panfrost/libpan/libpan_shaders_v6.c",
"meson_generated/src/panfrost/libpan/libpan_v6.cpp",
],
local_include_dirs: [
"include",
"include/android_stub",
"src",
"src/compiler",
"src/compiler/nir",
"src/panfrost",
"src/panfrost/compiler",
"src/panfrost/genxml",
"src/panfrost/lib",
"src/panfrost/libpan",
"src/panfrost/midgard",
"src/panfrost/model",
"src/panfrost/shared",
"src/panfrost/vulkan",
"src/panfrost/vulkan/bifrost",
"src/panfrost/vulkan/jm",
"src/vulkan/runtime",
"src/vulkan/runtime/bvh",
"src/vulkan/util",
"src/vulkan/wsi",
"meson_generated/src",
"meson_generated/src/compiler",
"meson_generated/src/compiler/nir",
"meson_generated/src/compiler/spirv",
"meson_generated/src/panfrost",
"meson_generated/src/panfrost/compiler",
"meson_generated/src/panfrost/genxml",
"meson_generated/src/panfrost/libpan",
"meson_generated/src/panfrost/midgard",
"meson_generated/src/panfrost/vulkan",
"meson_generated/src/util",
"meson_generated/src/util/format",
"meson_generated/src/vulkan/runtime",
"meson_generated/src/vulkan/util",
"meson_generated/src/vulkan/wsi",
],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_vulkan_v7",
vendor: true,
defaults: ["mesa_common_defaults"],
cflags: [
"-DPAN_ARCH=7",
"-DVK_USE_PLATFORM_ANDROID_KHR",
],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_common_pack_h",
"panfrost_genxml_v7_pack_h",
"panfrost_bi_opcodes_h_gen",
],
srcs: [
// bifrost arch files
"vulkan/bifrost/panvk_vX_meta_desc_copy.c",
// jm (job model) files
"vulkan/jm/panvk_vX_cmd_buffer.c",
"vulkan/jm/panvk_vX_cmd_dispatch.c",
"vulkan/jm/panvk_vX_cmd_draw.c",
"vulkan/jm/panvk_vX_cmd_event.c",
"vulkan/jm/panvk_vX_cmd_precomp.c",
"vulkan/jm/panvk_vX_cmd_query.c",
"vulkan/jm/panvk_vX_event.c",
"vulkan/jm/panvk_vX_gpu_queue.c",
// common per-arch files
"vulkan/panvk_vX_blend.c",
"vulkan/panvk_vX_buffer_view.c",
"vulkan/panvk_vX_cmd_desc_state.c",
"vulkan/panvk_vX_cmd_dispatch.c",
"vulkan/panvk_vX_cmd_draw.c",
"vulkan/panvk_vX_cmd_fb_preload.c",
"vulkan/panvk_vX_cmd_meta.c",
"vulkan/panvk_vX_cmd_push_constant.c",
"vulkan/panvk_vX_descriptor_set.c",
"vulkan/panvk_vX_descriptor_set_layout.c",
"vulkan/panvk_vX_device.c",
"vulkan/panvk_vX_image_view.c",
"vulkan/panvk_vX_nir_lower_descriptors.c",
"vulkan/panvk_vX_physical_device.c",
"vulkan/panvk_vX_precomp_cache.c",
"vulkan/panvk_vX_query_pool.c",
"vulkan/panvk_vX_sampler.c",
"vulkan/panvk_vX_shader.c",
// generated libpan sources
"meson_generated/src/panfrost/libpan/libpan_shaders_v7.c",
"meson_generated/src/panfrost/libpan/libpan_v7.cpp",
],
local_include_dirs: [
"include",
"include/android_stub",
"src",
"src/compiler",
"src/compiler/nir",
"src/panfrost",
"src/panfrost/compiler",
"src/panfrost/genxml",
"src/panfrost/lib",
"src/panfrost/libpan",
"src/panfrost/midgard",
"src/panfrost/model",
"src/panfrost/shared",
"src/panfrost/vulkan",
"src/panfrost/vulkan/bifrost",
"src/panfrost/vulkan/jm",
"src/vulkan/runtime",
"src/vulkan/runtime/bvh",
"src/vulkan/util",
"src/vulkan/wsi",
"meson_generated/src",
"meson_generated/src/compiler",
"meson_generated/src/compiler/nir",
"meson_generated/src/compiler/spirv",
"meson_generated/src/panfrost",
"meson_generated/src/panfrost/compiler",
"meson_generated/src/panfrost/genxml",
"meson_generated/src/panfrost/libpan",
"meson_generated/src/panfrost/midgard",
"meson_generated/src/panfrost/vulkan",
"meson_generated/src/util",
"meson_generated/src/util/format",
"meson_generated/src/vulkan/runtime",
"meson_generated/src/vulkan/util",
"meson_generated/src/vulkan/wsi",
],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_vulkan_v10",
vendor: true,
defaults: ["mesa_common_defaults"],
cflags: [
"-DPAN_ARCH=10",
"-DVK_USE_PLATFORM_ANDROID_KHR",
],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_common_pack_h",
"panfrost_genxml_v10_pack_h",
"panfrost_bi_opcodes_h_gen",
],
srcs: [
// csf (command stream frontend) files
"vulkan/csf/panvk_vX_cmd_buffer.c",
"vulkan/csf/panvk_vX_cmd_dispatch.c",
"vulkan/csf/panvk_vX_cmd_draw.c",
"vulkan/csf/panvk_vX_cmd_event.c",
"vulkan/csf/panvk_vX_cmd_precomp.c",
"vulkan/csf/panvk_vX_cmd_query.c",
"vulkan/csf/panvk_vX_event.c",
"vulkan/csf/panvk_vX_exception_handler.c",
"vulkan/csf/panvk_vX_gpu_queue.c",
"vulkan/csf/panvk_vX_instr.c",
"vulkan/csf/panvk_vX_utrace.c",
// common per-arch files
"vulkan/panvk_vX_blend.c",
"vulkan/panvk_vX_buffer_view.c",
"vulkan/panvk_vX_cmd_desc_state.c",
"vulkan/panvk_vX_cmd_dispatch.c",
"vulkan/panvk_vX_cmd_draw.c",
"vulkan/panvk_vX_cmd_fb_preload.c",
"vulkan/panvk_vX_cmd_meta.c",
"vulkan/panvk_vX_cmd_push_constant.c",
"vulkan/panvk_vX_descriptor_set.c",
"vulkan/panvk_vX_descriptor_set_layout.c",
"vulkan/panvk_vX_device.c",
"vulkan/panvk_vX_image_view.c",
"vulkan/panvk_vX_nir_lower_descriptors.c",
"vulkan/panvk_vX_physical_device.c",
"vulkan/panvk_vX_precomp_cache.c",
"vulkan/panvk_vX_query_pool.c",
"vulkan/panvk_vX_sampler.c",
"vulkan/panvk_vX_shader.c",
// generated libpan sources
"meson_generated/src/panfrost/libpan/libpan_shaders_v10.c",
"meson_generated/src/panfrost/libpan/libpan_v10.cpp",
],
local_include_dirs: [
"include",
"include/android_stub",
"src",
"src/compiler",
"src/compiler/nir",
"src/panfrost",
"src/panfrost/compiler",
"src/panfrost/genxml",
"src/panfrost/lib",
"src/panfrost/libpan",
"src/panfrost/midgard",
"src/panfrost/model",
"src/panfrost/shared",
"src/panfrost/vulkan",
"src/panfrost/vulkan/bifrost",
"src/panfrost/vulkan/csf",
"src/panfrost/vulkan/jm",
"src/vulkan/runtime",
"src/vulkan/runtime/bvh",
"src/vulkan/util",
"src/vulkan/wsi",
"meson_generated/src",
"meson_generated/src/compiler",
"meson_generated/src/compiler/nir",
"meson_generated/src/compiler/spirv",
"meson_generated/src/panfrost",
"meson_generated/src/panfrost/compiler",
"meson_generated/src/panfrost/genxml",
"meson_generated/src/panfrost/libpan",
"meson_generated/src/panfrost/midgard",
"meson_generated/src/panfrost/vulkan",
"meson_generated/src/util",
"meson_generated/src/util/format",
"meson_generated/src/vulkan/runtime",
"meson_generated/src/vulkan/util",
"meson_generated/src/vulkan/wsi",
],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_vulkan_v12",
vendor: true,
defaults: ["mesa_common_defaults"],
cflags: [
"-DPAN_ARCH=12",
"-DVK_USE_PLATFORM_ANDROID_KHR",
],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_common_pack_h",
"panfrost_genxml_v12_pack_h",
"panfrost_bi_opcodes_h_gen",
],
srcs: [
// csf (command stream frontend) files
"vulkan/csf/panvk_vX_cmd_buffer.c",
"vulkan/csf/panvk_vX_cmd_dispatch.c",
"vulkan/csf/panvk_vX_cmd_draw.c",
"vulkan/csf/panvk_vX_cmd_event.c",
"vulkan/csf/panvk_vX_cmd_precomp.c",
"vulkan/csf/panvk_vX_cmd_query.c",
"vulkan/csf/panvk_vX_event.c",
"vulkan/csf/panvk_vX_exception_handler.c",
"vulkan/csf/panvk_vX_gpu_queue.c",
"vulkan/csf/panvk_vX_instr.c",
"vulkan/csf/panvk_vX_utrace.c",
// avalon files
"vulkan/avalon/panvk_vX_meta_desc_copy.c",
// common per-arch files
"vulkan/panvk_vX_blend.c",
"vulkan/panvk_vX_buffer_view.c",
"vulkan/panvk_vX_cmd_desc_state.c",
"vulkan/panvk_vX_cmd_dispatch.c",
"vulkan/panvk_vX_cmd_draw.c",
"vulkan/panvk_vX_cmd_fb_preload.c",
"vulkan/panvk_vX_cmd_meta.c",
"vulkan/panvk_vX_cmd_push_constant.c",
"vulkan/panvk_vX_descriptor_set.c",
"vulkan/panvk_vX_descriptor_set_layout.c",
"vulkan/panvk_vX_device.c",
"vulkan/panvk_vX_image_view.c",
"vulkan/panvk_vX_nir_lower_descriptors.c",
"vulkan/panvk_vX_physical_device.c",
"vulkan/panvk_vX_precomp_cache.c",
"vulkan/panvk_vX_query_pool.c",
"vulkan/panvk_vX_sampler.c",
"vulkan/panvk_vX_shader.c",
// generated libpan sources
"meson_generated/src/panfrost/libpan/libpan_shaders_v12.c",
"meson_generated/src/panfrost/libpan/libpan_v12.cpp",
],
local_include_dirs: [
"include",
"include/android_stub",
"src",
"src/compiler",
"src/compiler/nir",
"src/panfrost",
"src/panfrost/compiler",
"src/panfrost/genxml",
"src/panfrost/lib",
"src/panfrost/libpan",
"src/panfrost/midgard",
"src/panfrost/model",
"src/panfrost/shared",
"src/panfrost/vulkan",
"src/panfrost/vulkan/avalon",
"src/panfrost/vulkan/csf",
"src/vulkan/runtime",
"src/vulkan/runtime/bvh",
"src/vulkan/util",
"src/vulkan/wsi",
"meson_generated/src",
"meson_generated/src/compiler",
"meson_generated/src/compiler/nir",
"meson_generated/src/compiler/spirv",
"meson_generated/src/panfrost",
"meson_generated/src/panfrost/compiler",
"meson_generated/src/panfrost/genxml",
"meson_generated/src/panfrost/libpan",
"meson_generated/src/panfrost/midgard",
"meson_generated/src/panfrost/vulkan",
"meson_generated/src/util",
"meson_generated/src/util/format",
"meson_generated/src/vulkan/runtime",
"meson_generated/src/vulkan/util",
"meson_generated/src/vulkan/wsi",
],
}
cc_library_static {
name: "mesa3d_panfrost_src_panfrost_vulkan_v13",
vendor: true,
defaults: ["mesa_common_defaults"],
cflags: [
"-DPAN_ARCH=13",
"-DVK_USE_PLATFORM_ANDROID_KHR",
],
header_libs: [
"mesa_util_headers",
"mesa_panfrost_headers",
],
generated_headers: [
"panfrost_genxml_common_pack_h",
"panfrost_genxml_v13_pack_h",
"panfrost_bi_opcodes_h_gen",
],
srcs: [
// csf (command stream frontend) files
"vulkan/csf/panvk_vX_cmd_buffer.c",
"vulkan/csf/panvk_vX_cmd_dispatch.c",
"vulkan/csf/panvk_vX_cmd_draw.c",
"vulkan/csf/panvk_vX_cmd_event.c",
"vulkan/csf/panvk_vX_cmd_precomp.c",
"vulkan/csf/panvk_vX_cmd_query.c",
"vulkan/csf/panvk_vX_event.c",
"vulkan/csf/panvk_vX_exception_handler.c",
"vulkan/csf/panvk_vX_gpu_queue.c",
"vulkan/csf/panvk_vX_instr.c",
"vulkan/csf/panvk_vX_utrace.c",
// avalon files
"vulkan/avalon/panvk_vX_meta_desc_copy.c",
// common per-arch files
"vulkan/panvk_vX_blend.c",
"vulkan/panvk_vX_buffer_view.c",
"vulkan/panvk_vX_cmd_desc_state.c",
"vulkan/panvk_vX_cmd_dispatch.c",
"vulkan/panvk_vX_cmd_draw.c",
"vulkan/panvk_vX_cmd_fb_preload.c",
"vulkan/panvk_vX_cmd_meta.c",
"vulkan/panvk_vX_cmd_push_constant.c",
"vulkan/panvk_vX_descriptor_set.c",
"vulkan/panvk_vX_descriptor_set_layout.c",
"vulkan/panvk_vX_device.c",
"vulkan/panvk_vX_image_view.c",
"vulkan/panvk_vX_nir_lower_descriptors.c",
"vulkan/panvk_vX_physical_device.c",
"vulkan/panvk_vX_precomp_cache.c",
"vulkan/panvk_vX_query_pool.c",
"vulkan/panvk_vX_sampler.c",
"vulkan/panvk_vX_shader.c",
// generated libpan sources
"meson_generated/src/panfrost/libpan/libpan_shaders_v13.c",
"meson_generated/src/panfrost/libpan/libpan_v13.cpp",
],
local_include_dirs: [
"include",
"include/android_stub",
"src",
"src/compiler",
"src/compiler/nir",
"src/panfrost",
"src/panfrost/compiler",
"src/panfrost/genxml",
"src/panfrost/lib",
"src/panfrost/libpan",
"src/panfrost/midgard",
"src/panfrost/model",
"src/panfrost/shared",
"src/panfrost/vulkan",
"src/panfrost/vulkan/avalon",
"src/panfrost/vulkan/csf",
"src/vulkan/runtime",
"src/vulkan/runtime/bvh",
"src/vulkan/util",
"src/vulkan/wsi",
"meson_generated/src",
"meson_generated/src/compiler",
"meson_generated/src/compiler/nir",
"meson_generated/src/compiler/spirv",
"meson_generated/src/panfrost",
"meson_generated/src/panfrost/compiler",
"meson_generated/src/panfrost/genxml",
"meson_generated/src/panfrost/libpan",
"meson_generated/src/panfrost/midgard",
"meson_generated/src/panfrost/vulkan",
"meson_generated/src/util",
"meson_generated/src/util/format",
"meson_generated/src/vulkan/runtime",
"meson_generated/src/vulkan/util",
"meson_generated/src/vulkan/wsi",
],
}