xref: /linux/drivers/gpu/drm/amd/amdgpu/gfx_v9_0_cleaner_shader.h (revision 3fd6c59042dbba50391e30862beac979491145fe)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright 2024 Advanced Micro Devices, Inc.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21  * OTHER DEALINGS IN THE SOFTWARE.
22  */
23 /* Define the cleaner shader gfx_9_0 */
24 static const u32 __maybe_unused gfx_9_0_cleaner_shader_hex[] = {
25 	/* Add the cleaner shader code here */
26 };
27 
28 /* Define the cleaner shader gfx_9_4_2 */
29 static const u32 gfx_9_4_2_cleaner_shader_hex[] = {
30 	0xbf068100, 0xbf84003b,
31 	0xbf8a0000, 0xb07c0000,
32 	0xbe8200ff, 0x00000078,
33 	0xbf110802, 0x7e000280,
34 	0x7e020280, 0x7e040280,
35 	0x7e060280, 0x7e080280,
36 	0x7e0a0280, 0x7e0c0280,
37 	0x7e0e0280, 0x80828802,
38 	0xbe803202, 0xbf84fff5,
39 	0xbf9c0000, 0xbe8200ff,
40 	0x80000000, 0x86020102,
41 	0xbf840011, 0xbefe00c1,
42 	0xbeff00c1, 0xd28c0001,
43 	0x0001007f, 0xd28d0001,
44 	0x0002027e, 0x10020288,
45 	0xbe8200bf, 0xbefc00c1,
46 	0xd89c2000, 0x00020201,
47 	0xd89c6040, 0x00040401,
48 	0x320202ff, 0x00000400,
49 	0x80828102, 0xbf84fff8,
50 	0xbefc00ff, 0x0000005c,
51 	0xbf800000, 0xbe802c80,
52 	0xbe812c80, 0xbe822c80,
53 	0xbe832c80, 0x80fc847c,
54 	0xbf84fffa, 0xbee60080,
55 	0xbee70080, 0xbeea0180,
56 	0xbeec0180, 0xbeee0180,
57 	0xbef00180, 0xbef20180,
58 	0xbef40180, 0xbef60180,
59 	0xbef80180, 0xbefa0180,
60 	0xbf810000, 0xbf8d0001,
61 	0xbefc00ff, 0x0000005c,
62 	0xbf800000, 0xbe802c80,
63 	0xbe812c80, 0xbe822c80,
64 	0xbe832c80, 0x80fc847c,
65 	0xbf84fffa, 0xbee60080,
66 	0xbee70080, 0xbeea01ff,
67 	0x000000ee, 0xbf810000,
68 };
69