head 1.2; access; symbols netbsd-11-0-RC5:1.1.1.2.2.1 netbsd-11-0-RC4:1.1.1.2 netbsd-11-0-RC3:1.1.1.2 netbsd-11-0-RC2:1.1.1.2 netbsd-11-0-RC1:1.1.1.2 netbsd-11:1.1.1.2.0.2 netbsd-11-base:1.1.1.2 libdrm-2-4-124:1.1.1.2 netbsd-10-1-RELEASE:1.1.1.1 libdrm-2-4-122:1.1.1.2 netbsd-10-0-RELEASE:1.1.1.1 netbsd-10-0-RC6:1.1.1.1 netbsd-10-0-RC5:1.1.1.1 netbsd-10-0-RC4:1.1.1.1 netbsd-10-0-RC3:1.1.1.1 netbsd-10-0-RC2:1.1.1.1 netbsd-10-0-RC1:1.1.1.1 netbsd-10:1.1.1.1.0.2 netbsd-10-base:1.1.1.1 libdrm-2-4-114:1.1.1.1 xorg:1.1.1; locks; strict; comment @ * @; 1.2 date 2026.06.10.05.27.44; author mrg; state dead; branches; next 1.1; commitid OkSNQummCTEKcdJG; 1.1 date 2022.11.12.02.04.42; author mrg; state Exp; branches 1.1.1.1; next ; commitid fMjFZZt1HqTR3m1E; 1.1.1.1 date 2022.11.12.02.04.42; author mrg; state Exp; branches; next 1.1.1.2; commitid fMjFZZt1HqTR3m1E; 1.1.1.2 date 2024.07.04.09.21.32; author mrg; state Exp; branches 1.1.1.2.2.1; next ; commitid yumHpHqYfO9ZbvgF; 1.1.1.2.2.1 date 2026.06.15.19.01.18; author martin; state dead; branches; next ; commitid k60aEdEWX1t2xVJG; desc @@ 1.2 log @merge libdrm 2.4.134 @ text @/* * Copyright 2022 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) 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 _shader_code_gfx11_h_ #define _shader_code_gfx11_h_ static const uint32_t bufferclear_cs_shader_gfx11[] = { 0xB0802006, 0xBF840003, 0x360000FF, 0x000003FF, 0x7E020205, 0x7E040206, 0x7E060207, 0xBF870004, 0xD6460004, 0x04010C08, 0x7E000204, 0xE01C0000, 0x80800004, 0xBFB60003, 0xBFB00000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000 }; static const struct reg_info bufferclear_cs_shader_registers_gfx11[] = { {0x2e12, 0x600C0041}, //{ mmCOMPUTE_PGM_RSRC1, 0x600C0041 }, {0x2e13, 0x00000090}, //{ mmCOMPUTE_PGM_RSRC2, 0x00000090 }, {0x2e07, 0x00000040}, //{ mmCOMPUTE_NUM_THREAD_X, 0x00000040 }, {0x2e08, 0x00000001}, //{ mmCOMPUTE_NUM_THREAD_Y, 0x00000001 }, {0x2e09, 0x00000001}, //{ mmCOMPUTE_NUM_THREAD_Z, 0x00000001 } }; static const uint32_t buffercopy_cs_shader_gfx11[] = { 0xB0802006, 0xBF840003, 0x360000FF, 0x000003FF, 0xBF870001, 0xD6460001, 0x04010C08, 0xE00C0000, 0x80800201, 0xBF8903F7, 0xE01C0000, 0x80810201, 0xBFB60003, 0xBFB00000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000 }; static const uint32_t ps_const_shader_gfx11[] = { 0xB0802006, 0xBF840003, 0x7E000200, 0x7E020201, 0x7E040202, 0x7E060203, 0x5E000300, 0x5E020702, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000100, 0xBFB00000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000 }; static const uint32_t ps_const_shader_patchinfo_code_size_gfx11 = 6; static const uint32_t ps_const_shader_patchinfo_code_gfx11[][10][6] = { {{ 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000890, 0x00000000 }, // SI_EXPORT_FMT_ZERO { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000801, 0x00000000 }, // SI_EXPORT_FMT_32_R { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_32_GR { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000300 }, // SI_EXPORT_FMT_32_AR { 0x5E000300, 0x5E020702, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_FP16_ABGR { 0xD7220000, 0x00020300, 0xD7220001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_UNORM16_ABGR { 0xD7210000, 0x00020300, 0xD7210001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_SNORM16_ABGR { 0xD7230000, 0x00020300, 0xD7230001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_uint32_t16_ABGR { 0xD7240000, 0x00020300, 0xD7240001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_SINT16_ABGR { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF800080F, 0x03020100 } // SI_EXPORT_FMT_32_ABGR } }; static const uint32_t ps_const_shader_patchinfo_offset_gfx11[] = { 0x00000006 }; static const uint32_t ps_const_num_sh_registers_gfx11 = 2; static const struct reg_info ps_const_sh_registers_gfx11[] = { {0x2C0A, 0x020C0000}, //{ mmSPI_SHADER_PGM_RSRC1_PS, 0x020C0000 }, {0x2C0B, 0x00000008}, //{ mmSPI_SHADER_PGM_RSRC2_PS, 0x00000008 } }; static const struct reg_info ps_const_context_registers_gfx11[] = { {0xA1B4, 0x00000002 }, //{ mmSPI_PS_INPUT_ADDR, 0x00000002 }, {0xA1B6, 0x00000000 }, //{ mmSPI_PS_IN_CONTROL, 0x00000000 }, {0xA08F, 0x0000000F }, //{ mmCB_SHADER_MASK, 0x0000000F }, {0xA203, 0x00000010 }, //{ mmDB_SHADER_CONTROL, 0x00000010 }, {0xA1C4, 0x00000000 }, //{ mmSPI_SHADER_Z_FORMAT, 0x00000000 }, {0xA1B8, 0x00000000 }, //{ mmSPI_BARYC_CNTL, 0x00000000 /* Always 0 for now */}, {0xA1C5, 0x00000004 }, //{ mmSPI_SHADER_COL_FORMAT, 0x00000004 /* SI_EXPORT_FMT_FP16_ABGR */ } }; static const uint32_t ps_const_num_context_registers_gfx11 = 7; static const uint32_t ps_tex_shader_gfx11[] = { 0xB0802006, 0xBF840003, 0xBEFD000C, 0xBE8E017E, 0xBEFE1D7E, 0xCE000003, 0xCE000102, 0xCD000104, 0x040E0103, 0xCD000000, 0x040A0102, 0xBF870112, 0xCD010703, 0x04120303, 0xCD010700, 0x04020302, 0x8BFE0E7E, 0xF06C0F05, 0x08000003, 0x00000000, 0xBEFE010E, 0xBF8903F7, 0x5E000300, 0x5E020702, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000100, 0xBFB00000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000 }; static const uint32_t ps_tex_shader_patchinfo_offset_gfx11[] = { 0x00000016 }; // Denotes the Patch Info Code Length static const uint32_t ps_tex_shader_patchinfo_code_size_gfx11 = 6; static const uint32_t ps_tex_shader_patchinfo_code_gfx11[][10][6] = { {{ 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000890, 0x00000000 }, // SI_EXPORT_FMT_ZERO { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000801, 0x00000000 }, // SI_EXPORT_FMT_32_R { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_32_GR { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000300 }, // SI_EXPORT_FMT_32_AR { 0x5E000300, 0x5E020702, 0xBF800000, 0xBF800000, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_FP16_ABGR { 0xD7220000, 0x00020300, 0xD7220001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_UNORM16_ABGR { 0xD7210000, 0x00020300, 0xD7210001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_SNORM16_ABGR { 0xD7230000, 0x00020300, 0xD7230001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_uint32_t16_ABGR { 0xD7240000, 0x00020300, 0xD7240001, 0x00020702, 0xF8000803, 0x00000100 }, // SI_EXPORT_FMT_SINT16_ABGR { 0xBF800000, 0xBF800000, 0xBF800000, 0xBF800000, 0xF800080F, 0x03020100 } // SI_EXPORT_FMT_32_ABGR } }; // Holds Sh Register Information static const struct reg_info ps_tex_sh_registers_gfx11[] = { {0x2C0A, 0x020C0081 }, //{ mmSPI_SHADER_PGM_RSRC1_PS, 0x020C0081 }, {0x2C0B, 0x00000018 } //{ mmSPI_SHADER_PGM_RSRC2_PS, 0x00000018 } }; static const uint32_t ps_tex_num_sh_registers_gfx11 = 2; // Holds Context Register Information static const struct reg_info ps_tex_context_registers_gfx11[] = { {0xA1B4, 0x00000002 }, //{ mmSPI_PS_INPUT_ADDR, 0x00000002 }, {0xA1B6, 0x00000001 }, //{ mmSPI_PS_IN_CONTROL, 0x00000001 }, {0xA08F, 0x0000000F }, //{ mmCB_SHADER_MASK, 0x0000000F }, {0xA203, 0x00000010 }, //{ mmDB_SHADER_CONTROL, 0x00000010 }, {0xA1C4, 0x00000000 }, //{ mmSPI_SHADER_Z_FORMAT, 0x00000000 }, {0xA1B8, 0x00000000 }, //{ mmSPI_BARYC_CNTL, 0x00000000 /* Always 0 for now */}, {0xA1C5, 0x00000004 } //{ mmSPI_SHADER_COL_FORMAT, 0x00000004 /* SI_EXPORT_FMT_FP16_ABGR */ } }; static const uint32_t ps_tex_num_context_registers_gfx11 = 7; static const uint32_t vs_RectPosTexFast_shader_gfx11[] = { 0xB0802006, 0xBEFE01C1, 0xBF840003, 0xF408050A, 0xF80000B0, 0xD71F0001, 0x000100C1, 0x9300FF03, 0x00040018, 0x9301FF02, 0x0009000C, 0xBF870091, 0xD7200001, 0x000202C1, 0xD60B0001, 0x04058000, 0xBF870001, 0xD4490000, 0x00000301, 0xBE862100, 0x7E040B05, 0xBFA5001C, 0x7E06020A, 0x7E08020E, 0x7E0A020F, 0xBF8701B4, 0x060404F3, 0x7E140211, 0x7E0E0210, 0x7C240480, 0x060404F3, 0xD5010003, 0x01AA0608, 0xD5010004, 0x01AA080C, 0xBF870003, 0xD4120012, 0x00010102, 0x7E04020B, 0xBEEA1F12, 0xBF870483, 0xD5010008, 0x01AA080C, 0xD5010006, 0x01AA0608, 0xBF870003, 0xD5010004, 0x004A0409, 0xD5010009, 0x004A0A0D, 0xBEFE0106, 0x9302FF02, 0x00090016, 0xBF870009, 0xD4C9007E, 0x00000501, 0xBFA50002, 0xF8000941, 0x00000000, 0xBF89FFF0, 0x8BFE0006, 0xD71F0000, 0x000100C1, 0xBFA50013, 0x7E1602F2, 0x9300FF03, 0x00040018, 0x8B01FF05, 0x00007FFF, 0xBF8704B2, 0xD7200000, 0x000200C1, 0x7E0202F2, 0x84018901, 0x80018001, 0xBF870002, 0xD60B0000, 0x04018000, 0xF80008CF, 0x01070406, 0xBF89FC07, 0xE0744000, 0x01850800, 0xBFB00000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000, 0xBF9F0000 }; static const struct reg_info vs_RectPosTexFast_sh_registers_gfx11[] = { {0x2C8A, 0x020C00C2}, //{ mmSPI_SHADER_PGM_RSRC1_GS, 0x020C00C2 }, {0x2C8B, 0x0008001C}, //{ mmSPI_SHADER_PGM_RSRC2_GS, 0x0008001C } }; static const uint32_t vs_RectPosTexFast_num_sh_registers_gfx11 = 2; // Holds Context Register Information static const struct reg_info vs_RectPosTexFast_context_registers_gfx11[] = { {0xA1B1, 0x00000000}, //{ mmSPI_VS_OUT_CONFIG, 0x00000000 }, {0xA1C2, 0x00000001}, //{ mmSPI_SHADER_IDX_FORMAT, 0x00000001 }, {0xA1C3, 0x00000000}, //{ mmSPI_SHADER_POS_FORMAT, 0x00000000 /* Always 0 for now */}, {0xA2E4, 0x00000000}, //{ mmVGT_GS_INSTANCE_CNT, 0x00000000 }, {0xA2AB, 0x00000004}, //{ mmVGT_ESGS_RING_ITEMSIZE, 0x00000004 }, {0xA2CE, 0x00000001}, //{ mmVGT_GS_MAX_VERT_OUT, 0x00000001 } }; static const uint32_t vs_RectPosTexFast_num_context_registers_gfx11 = 6; static const uint32_t preamblecache_gfx11[] = { 0xc0026900, 0x81, 0x80000000, 0x40004000, 0xc0026900, 0x8c, 0xaa99aaaa, 0x0, 0xc0026900, 0x90, 0x80000000, 0x40004000, 0xc0026900, 0x94, 0x80000000, 0x40004000, 0xc0026900, 0xb4, 0x0, 0x3f800000, 0xc0016900, 0x103, 0x0, 0xc0016900, 0x208, 0x0, 0xc0016900, 0x2a1, 0x0, 0xc0016900, 0x2ad, 0x0, 0xc0016900, 0x2dc, 0x0, 0xc0066900, 0x2de, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0056900, 0x2f9, 0x5, 0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000, 0xc0046900, 0x310, 0x0, 0x3, 0x0, 0x100000, 0xc0016900, 0x349, 0x0, 0xc0016900, 0x358, 0x0, 0xc0016900, 0x367, 0x0, 0xc0016900, 0x376, 0x0, 0xc0016900, 0x385, 0x0, 0xc0076900, 0x1e1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0026900, 0x204, 0x90000, 0x4, 0xc0016900, 0x20c, 0x0, 0xc0026900, 0x20e, 0x0, 0x0, 0xc0016900, 0x2b2, 0x0, 0xc0026900, 0x30e, 0xffffffff, 0xffffffff, 0xc0016900, 0x314, 0x0, 0xc0016900, 0x10a, 0x0, 0xc0016900, 0x2a6, 0x0, 0xc0016900, 0x210, 0x0, 0xc0016900, 0x2db, 0x0, 0xc0016900, 0x2e4, 0x0, 0xc0002f00, 0x1, 0xc0016900, 0x1, 0x0, 0xc0016900, 0x206, 0x300, 0xc0016900, 0x212, 0x200, 0xc0016900, 0xf4, 0x0, 0xc0016900, 0x18, 0x0, 0xc0016900, 0x1d4, 0xff, 0xc0016900, 0x2ce, 0x1, 0xc0016900, 0x2d3, 0x20001, 0xc0016900, 0x1ff, 0x80, 0xc0016900, 0x2d5, 0x6012010, 0xc0017a00, 0x20000243, 0x0, 0xc0017900, 0x249, 0x0, 0xc0017900, 0x24a, 0x0, 0xc0017900, 0x24b, 0x0, 0xc0017900, 0x259, 0xffffffff, 0xc0017900, 0x25f, 0x0, 0xc0017900, 0x260, 0x0, 0xc0017900, 0x262, 0x0, 0xc0017900, 0x444, 0x0, 0xc0017900, 0x445, 0x0, 0xc0017600, 0x6, 0x0, 0xc0017600, 0x80, 0x0, 0xc0017600, 0xb0, 0x0, 0xc0047600, 0xb2, 0x0, 0x0, 0x0, 0x0, 0xc0017600, 0x30, 0x0, 0xc0047600, 0x32, 0x0, 0x0, 0x0, 0x0 }; static const uint32_t cached_cmd_gfx11[] = { 0xc0016900, 0x0, 0x0, 0xc0026900, 0x3, 0x2a, 0x0, 0xc0046900, 0xa, 0x0, 0x0, 0x0, 0x200020, 0xc0016900, 0x83, 0xffff, 0xc0026900, 0x8e, 0xf, 0xf, 0xc0056900, 0x105, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0026900, 0x10b, 0x0, 0x0, 0xc0016900, 0x1e0, 0x0, 0xc0036900, 0x200, 0x0, 0x10000, 0xcc0011, 0xc0026900, 0x292, 0x20, 0x6020000, 0xc0026900, 0x2b0, 0x0, 0x0, 0xc0016900, 0x2f8, 0x0, 0xc0046900, 0x1d5, 0x0, 0x0, 0x0, 0x0, 0xc0016900, 0x104, 0x4a00005, 0xc0016900, 0x1f, 0xf2a0055, 0xc0017900, 0x266, 0x4 }; static const uint32_t sh_reg_base_gfx11 = 0x2C00; static const uint32_t context_reg_base_gfx11 = 0xA000; #endif @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of libdrm-2.4.114 @ text @@ 1.1.1.2 log @initial import of libdrm-2.4.122 @ text @d104 1 a104 1 #define ps_const_shader_patchinfo_code_size_gfx11 6 d124 1 a124 1 #define ps_const_num_sh_registers_gfx11 2 d141 1 a141 1 #define ps_const_num_context_registers_gfx11 7 d177 1 a177 1 #define ps_tex_shader_patchinfo_code_size_gfx11 6 d200 1 a200 1 #define ps_tex_num_sh_registers_gfx11 2 d214 2 a215 1 #define ps_tex_num_context_registers_gfx11 7 d264 1 a264 1 #define vs_RectPosTexFast_num_sh_registers_gfx11 2 d277 1 a277 1 #define vs_RectPosTexFast_num_context_registers_gfx11 6 d317 2 a318 3 #define sh_reg_base_gfx11 0x2C00 #define context_reg_base_gfx11 0xA000 @ 1.1.1.2.2.1 log @Pull up the following revisions, requested by mrg in ticket #310: external/mit/libdrm/dist/amdgpu/amdgpu_userq.c up to 1.2 external/mit/libdrm/dist/tests/amdgpu/amdgpu_test.c delete external/mit/libdrm/dist/tests/amdgpu/amdgpu_test.h delete external/mit/libdrm/dist/tests/amdgpu/basic_tests.c delete external/mit/libdrm/dist/tests/amdgpu/bo_tests.c delete external/mit/libdrm/dist/tests/amdgpu/cp_dma_tests.c delete external/mit/libdrm/dist/tests/amdgpu/cs_tests.c delete external/mit/libdrm/dist/tests/amdgpu/deadlock_tests.c delete external/mit/libdrm/dist/tests/amdgpu/decode_messages.h delete external/mit/libdrm/dist/tests/amdgpu/frame.h delete external/mit/libdrm/dist/tests/amdgpu/hotunplug_tests.c delete external/mit/libdrm/dist/tests/amdgpu/jpeg_tests.c delete external/mit/libdrm/dist/tests/amdgpu/ras_tests.c delete external/mit/libdrm/dist/tests/amdgpu/security_tests.c delete external/mit/libdrm/dist/tests/amdgpu/shader_code.h delete external/mit/libdrm/dist/tests/amdgpu/shader_code_gfx10.h delete external/mit/libdrm/dist/tests/amdgpu/shader_code_gfx11.h delete external/mit/libdrm/dist/tests/amdgpu/shader_code_gfx9.h delete external/mit/libdrm/dist/tests/amdgpu/shader_code_hang.h delete external/mit/libdrm/dist/tests/amdgpu/shader_test_util.c delete external/mit/libdrm/dist/tests/amdgpu/syncobj_tests.c delete external/mit/libdrm/dist/tests/amdgpu/uvd_enc_tests.c delete external/mit/libdrm/dist/tests/amdgpu/uve_ib.h delete external/mit/libdrm/dist/tests/amdgpu/vce_ib.h delete external/mit/libdrm/dist/tests/amdgpu/vce_tests.c delete external/mit/libdrm/dist/tests/amdgpu/vcn_tests.c delete external/mit/libdrm/dist/tests/amdgpu/vm_tests.c delete external/mit/libdrm/dist/.gitlab-ci.yml up to 1.1.1.5 external/mit/libdrm/dist/README.rst up to 1.1.1.3 external/mit/libdrm/dist/gen_table_fourcc.py up to 1.1.1.4 external/mit/libdrm/dist/meson.build up to 1.1.1.14 external/mit/libdrm/dist/meson_options.txt up to 1.1.1.4 external/mit/libdrm/dist/util_math.h up to 1.4 external/mit/libdrm/dist/xf86drm.c up to 1.35 external/mit/libdrm/dist/xf86drm.h up to 1.18 external/mit/libdrm/dist/amdgpu/amdgpu-symbols.txt up to 1.1.1.6 external/mit/libdrm/dist/amdgpu/amdgpu.h up to 1.6 external/mit/libdrm/dist/amdgpu/amdgpu_asic_id.c up to 1.1.1.4 external/mit/libdrm/dist/amdgpu/amdgpu_bo.c up to 1.8 external/mit/libdrm/dist/amdgpu/amdgpu_device.c up to 1.1.1.10 external/mit/libdrm/dist/amdgpu/amdgpu_gpu_info.c up to 1.1.1.7 external/mit/libdrm/dist/amdgpu/amdgpu_internal.h up to 1.1.1.7 external/mit/libdrm/dist/amdgpu/amdgpu_vamgr.c up to 1.6 external/mit/libdrm/dist/amdgpu/meson.build up to 1.1.1.9 external/mit/libdrm/dist/data/amdgpu.ids up to 1.1.1.13 external/mit/libdrm/dist/etnaviv/meson.build up to 1.1.1.9 external/mit/libdrm/dist/exynos/meson.build up to 1.1.1.9 external/mit/libdrm/dist/freedreno/meson.build up to 1.1.1.9 external/mit/libdrm/dist/include/drm/amdgpu_drm.h up to 1.1.1.14 external/mit/libdrm/dist/include/drm/drm.h up to 1.16 external/mit/libdrm/dist/include/drm/drm_fourcc.h up to 1.1.1.11 external/mit/libdrm/dist/include/drm/drm_mode.h up to 1.1.1.16 external/mit/libdrm/dist/include/drm/virtgpu_drm.h up to 1.1.1.4 external/mit/libdrm/dist/intel/meson.build up to 1.1.1.9 external/mit/libdrm/dist/man/drm-kms.7.rst up to 1.1.1.3 external/mit/libdrm/dist/man/drm-memory.7.rst up to 1.1.1.3 external/mit/libdrm/dist/man/drm.7.rst up to 1.1.1.3 external/mit/libdrm/dist/man/drmAvailable.3.rst up to 1.1.1.2 external/mit/libdrm/dist/man/drmHandleEvent.3.rst up to 1.1.1.2 external/mit/libdrm/dist/man/drmModeGetResources.3.rst up to 1.1.1.2 external/mit/libdrm/dist/nouveau/meson.build up to 1.1.1.9 external/mit/libdrm/dist/omap/meson.build up to 1.1.1.9 external/mit/libdrm/dist/omap/omap_drm.c up to 1.1.1.9 external/mit/libdrm/dist/radeon/meson.build up to 1.1.1.9 external/mit/libdrm/dist/tegra/meson.build up to 1.1.1.9 external/mit/libdrm/dist/tests/drmdevice.c up to 1.1.1.6 external/mit/libdrm/dist/tests/amdgpu/meson.build up to 1.1.1.9 external/mit/libdrm/dist/tests/modetest/buffers.c up to 1.1.1.11 external/mit/libdrm/dist/tests/modetest/buffers.h up to 1.1.1.5 external/mit/libdrm/dist/tests/modetest/modetest.c up to 1.21 external/mit/libdrm/dist/tests/util/pattern.c up to 1.1.1.9 external/mit/libdrm/dist/tests/util/pattern.h up to 1.1.1.4 Import libdrm 2.4.134. @ text @@