radv/rgp: report correct cu_mask info
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Mar 2020 10:53:16 +0000 (11:53 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 08:22:02 +0000 (08:22 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4023>

src/amd/vulkan/radv_rgp.c

index c356f53fa06f6b7430b2879f227f6687da074f2d..619ab8cfb0803b7b2e609e5e5603f3162cf1658a 100644 (file)
@@ -392,9 +392,9 @@ radv_fill_sqtt_asic_info(struct radv_device *device,
        chunk->memory_chip_type = radv_vram_type_to_sqtt_memory_type(rad_info->vram_type);
        chunk->lds_granularity = rad_info->lds_granularity;
 
-       for (unsigned se = 0; se < 32; se++) {
+       for (unsigned se = 0; se < 4; se++) {
                for (unsigned sa = 0; sa < 2; sa++) {
-                       chunk->cu_mask[se][sa] = 0; /* TODO */
+                       chunk->cu_mask[se][sa] = rad_info->cu_mask[se][sa];
                }
        }
 }