| /* SPDX-License-Identifier: MIT */ |
| /* |
| * Copyright 2025 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. |
| */ |
| |
| /* Define the cleaner shader gfx_10_1_10 */ |
| static const u32 gfx_10_1_10_cleaner_shader_hex[] = { |
| 0xb0804004, 0xbf8a0000, |
| 0xbf068100, 0xbf840023, |
| 0xbe8203b8, 0xbefc0380, |
| 0x7e008480, 0x7e028480, |
| 0x7e048480, 0x7e068480, |
| 0x7e088480, 0x7e0a8480, |
| 0x7e0c8480, 0x7e0e8480, |
| 0xbefc0302, 0x80828802, |
| 0xbf84fff5, 0xbe8203ff, |
| 0x80000000, 0x87020102, |
| 0xbf840012, 0xbefe03c1, |
| 0xbeff03c1, 0xd7650001, |
| 0x0001007f, 0xd7660001, |
| 0x0002027e, 0x16020288, |
| 0xbe8203bf, 0xbefc03c1, |
| 0xd9382000, 0x00020201, |
| 0xd9386040, 0x00040401, |
| 0xd70f6a01, 0x000202ff, |
| 0x00000400, 0x80828102, |
| 0xbf84fff7, 0xbefc03ff, |
| 0x00000068, 0xbe803000, |
| 0xbe813000, 0xbe823000, |
| 0xbe833000, 0x80fc847c, |
| 0xbf84fffa, 0xbeea0480, |
| 0xbeec0480, 0xbeee0480, |
| 0xbef00480, 0xbef20480, |
| 0xbef40480, 0xbef60480, |
| 0xbef80480, 0xbefa0480, |
| 0xbf810000, 0xbf9f0000, |
| 0xbf9f0000, 0xbf9f0000, |
| 0xbf9f0000, 0xbf9f0000, |
| }; |
| |
| /* Define the cleaner shader gfx_10_3_0 */ |
| static const u32 gfx_10_3_0_cleaner_shader_hex[] = { |
| 0xb0804004, 0xbf8a0000, |
| 0xbe8203b8, 0xbefc0380, |
| 0x7e008480, 0x7e028480, |
| 0x7e048480, 0x7e068480, |
| 0x7e088480, 0x7e0a8480, |
| 0x7e0c8480, 0x7e0e8480, |
| 0xbefc0302, 0x80828802, |
| 0xbf84fff5, 0xbe8203ff, |
| 0x80000000, 0x87020002, |
| 0xbf840012, 0xbefe03c1, |
| 0xbeff03c1, 0xd7650001, |
| 0x0001007f, 0xd7660001, |
| 0x0002027e, 0x16020288, |
| 0xbe8203bf, 0xbefc03c1, |
| 0xd9382000, 0x00020201, |
| 0xd9386040, 0x00040401, |
| 0xd70f6a01, 0x000202ff, |
| 0x00000400, 0x80828102, |
| 0xbf84fff7, 0xbefc03ff, |
| 0x00000068, 0xbe803080, |
| 0xbe813080, 0xbe823080, |
| 0xbe833080, 0x80fc847c, |
| 0xbf84fffa, 0xbeea0480, |
| 0xbeec0480, 0xbeee0480, |
| 0xbef00480, 0xbef20480, |
| 0xbef40480, 0xbef60480, |
| 0xbef80480, 0xbefa0480, |
| 0xbf810000, 0xbf9f0000, |
| 0xbf9f0000, 0xbf9f0000, |
| 0xbf9f0000, 0xbf9f0000, |
| }; |