freedreno: a2xx: enable batch reordering
authorJonathan Marek <jonathan@marek.ca>
Wed, 23 Jan 2019 22:28:20 +0000 (17:28 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 23 Apr 2019 17:13:32 +0000 (17:13 +0000)
Batch reordering on a2xx is now tested and functional.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c

index 1eebefd085efd6deebd20bbf7a02a4597fc62e1f..fdf2639071807d08bc88c6336410f3a7d553e318 100644 (file)
@@ -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);