diff options
author | Marek Olšák <[email protected]> | 2018-03-11 13:11:01 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-03-21 13:40:06 -0400 |
commit | cf0a95afacc24f79a22c9b00b29a27061fe195a0 (patch) | |
tree | f695eb8341807d0190bbc76755ec5034b6befe15 /src/gallium/drivers | |
parent | f7ffa504a065dc2631fd38cc5fe885b277f4e7e7 (diff) |
radeonsi/gfx9: print the swizzle mode for testdma
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_test_dma.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_test_dma.c b/src/gallium/drivers/radeonsi/si_test_dma.c index 779572eddb0..76a31936b46 100644 --- a/src/gallium/drivers/radeonsi/si_test_dma.c +++ b/src/gallium/drivers/radeonsi/si_test_dma.c @@ -139,8 +139,22 @@ static const char *array_mode_to_string(struct si_screen *sscreen, struct radeon_surf *surf) { if (sscreen->info.chip_class >= GFX9) { - /* TODO */ - return " UNKNOWN"; + switch (surf->u.gfx9.surf.swizzle_mode) { + case 0: + return " LINEAR"; + case 21: + return " 4KB_S_X"; + case 22: + return " 4KB_D_X"; + case 25: + return "64KB_S_X"; + case 26: + return "64KB_D_X"; + default: + printf("Unhandled swizzle mode = %u\n", + surf->u.gfx9.surf.swizzle_mode); + return " UNKNOWN"; + } } else { switch (surf->u.legacy.level[0].mode) { case RADEON_SURF_MODE_LINEAR_ALIGNED: |