18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: MIT */ 28c2ecf20Sopenharmony_ci#ifndef __NVIF_CL9097_H__ 38c2ecf20Sopenharmony_ci#define __NVIF_CL9097_H__ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR 0x00 68c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_DEPTH 0x01 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cistruct fermi_a_zbc_color_v0 { 98c2ecf20Sopenharmony_ci __u8 version; 108c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_ZERO 0x01 118c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_UNORM_ONE 0x02 128c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RF32_GF32_BF32_AF32 0x04 138c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_R16_G16_B16_A16 0x08 148c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RN16_GN16_BN16_AN16 0x0c 158c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RS16_GS16_BS16_AS16 0x10 168c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RU16_GU16_BU16_AU16 0x14 178c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_RF16_GF16_BF16_AF16 0x16 188c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8R8G8B8 0x18 198c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8RL8GL8BL8 0x1c 208c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A2B10G10R10 0x20 218c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AU2BU10GU10RU10 0x24 228c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8B8G8R8 0x28 238c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A8BL8GL8RL8 0x2c 248c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AN8BN8GN8RN8 0x30 258c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AS8BS8GS8RS8 0x34 268c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_AU8BU8GU8RU8 0x38 278c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_A2R10G10B10 0x3c 288c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_COLOR_V0_FMT_BF10GF11RF11 0x40 298c2ecf20Sopenharmony_ci __u8 format; 308c2ecf20Sopenharmony_ci __u8 index; 318c2ecf20Sopenharmony_ci __u8 pad03[5]; 328c2ecf20Sopenharmony_ci __u32 ds[4]; 338c2ecf20Sopenharmony_ci __u32 l2[4]; 348c2ecf20Sopenharmony_ci}; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_cistruct fermi_a_zbc_depth_v0 { 378c2ecf20Sopenharmony_ci __u8 version; 388c2ecf20Sopenharmony_ci#define FERMI_A_ZBC_DEPTH_V0_FMT_FP32 0x01 398c2ecf20Sopenharmony_ci __u8 format; 408c2ecf20Sopenharmony_ci __u8 index; 418c2ecf20Sopenharmony_ci __u8 pad03[5]; 428c2ecf20Sopenharmony_ci __u32 ds; 438c2ecf20Sopenharmony_ci __u32 l2; 448c2ecf20Sopenharmony_ci}; 458c2ecf20Sopenharmony_ci#endif 46