Skip to content

Commit ce6e20a

Browse files
jnettletaleasto
authored andcommitted
radeonsi: On Aarch64 force persistent buffers to GTT
This fixes a glamore corruption issue on the HoneyComb and by internet reports should also fix problems seen on Huaweii Kunpeng hardware. The root cause of the corruption needs to be worked out, but this patch also adds a noticable performance improvement. The aquarium webgl demo under chromium increases from 39-49 FPS when 5000 fish being rendered is selected. Glmark scores also improve by ~200 with no specific tests showing any regression. Signed-off-by: Jon Nettleton <[email protected]>
1 parent fdfca07 commit ce6e20a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gallium/drivers/radeonsi/si_buffer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res,
7070
*/
7171
if (!sscreen->info.is_amdgpu)
7272
res->domains = RADEON_DOMAIN_GTT;
73+
74+
#if defined(PIPE_ARCH_AARCH64)
75+
res->domains = RADEON_DOMAIN_GTT;
76+
#endif
7377
}
7478

7579
/* Tiled textures are unmappable. Always put them in VRAM. */

0 commit comments

Comments
 (0)