From: Jonathan Marek Date: Wed, 23 Jan 2019 22:28:20 +0000 (-0500) Subject: freedreno: a2xx: enable batch reordering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4107e0678a56c457b587a132cd16a78583192059;p=mesa.git freedreno: a2xx: enable batch reordering Batch reordering on a2xx is now tested and functional. Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- 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);