This commit sets up a framework for integrating the cleaner shader
across GFX9 IP versions, such as 9.0.1, 9.2.1, 9.4.0, 9.1.0, 9.2.2 and
9.3.0.

Cc: Christian König <christian.koe...@amd.com>
Cc: Alex Deucher <alexander.deuc...@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmu...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 
b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index d377a7c57d5e..90b1e9b241e0 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -2235,6 +2235,13 @@ static int gfx_v9_0_sw_init(struct amdgpu_ip_block 
*ip_block)
        }
 
        switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
+       case IP_VERSION(9, 0, 1):
+       case IP_VERSION(9, 2, 1):
+       case IP_VERSION(9, 4, 0):
+       case IP_VERSION(9, 2, 2):
+       case IP_VERSION(9, 1, 0):
+       case IP_VERSION(9, 3, 0):
+               break;
        case IP_VERSION(9, 4, 2):
                adev->gfx.cleaner_shader_ptr = gfx_9_4_2_cleaner_shader_hex;
                adev->gfx.cleaner_shader_size = 
sizeof(gfx_9_4_2_cleaner_shader_hex);
-- 
2.34.1

Reply via email to