From 4107e0678a56c457b587a132cd16a78583192059 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 23 Jan 2019 17:28:20 -0500 Subject: [PATCH] freedreno: a2xx: enable batch reordering Batch reordering on a2xx is now tested and functional. Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_screen.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 1eebefd085e..fdf26390718 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -881,12 +881,11 @@ fd_screen_create(struct fd_device *dev, struct renderonly *ro) screen->num_vsc_pipes = 8; } - /* NOTE: don't enable reordering on a2xx, since completely untested. - * Also, don't enable if we have too old of a kernel to support + /* NOTE: don't enable if we have too old of a kernel to support * growable cmdstream buffers, since memory requirement for cmdstream * buffers would be too much otherwise. */ - if ((screen->gpu_id >= 300) && (fd_device_version(dev) >= FD_VERSION_UNLIMITED_CMDS)) + if (fd_device_version(dev) >= FD_VERSION_UNLIMITED_CMDS) screen->reorder = !(fd_mesa_debug & FD_DBG_INORDER); fd_bc_init(&screen->batch_cache); -- 2.30.2