ac/gpu_info: Correct Acturus cu bitmap
authorJames Zhu <James.Zhu@amd.com>
Tue, 26 May 2020 13:28:41 +0000 (09:28 -0400)
committerJames Zhu <James.Zhu@amd.com>
Wed, 27 May 2020 14:49:02 +0000 (10:49 -0400)
commita91306677c613ba7511b764b3decc9db42b24de1
tree18535bacb18d391667424657e8598b03000a3934
parent296c04d78c9840f83e7fcaf9b45a4cee96752348
ac/gpu_info: Correct Acturus cu bitmap

The cu bitmap in amd gpu info structure is
4x4 size array, and it's usually suitable for Vega
ASICs which has 4*2 SE/SH layout.
But for Arcturus, SE/SH layout is changed to 8*1.
To mostly reduce the impact, we make it compatible
with current bitmap array as below:
SE4,SH0 --> cu_bitmap[0][1]
SE5,SH0 --> cu_bitmap[1][1]
SE6,SH0 --> cu_bitmap[2][1]
SE7,SH0 --> cu_bitmap[3][1]

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5212>
src/amd/common/ac_gpu_info.c