Revert "freedreno: use bypass if only clears"
authorRob Clark <robdclark@gmail.com>
Sun, 14 May 2017 18:16:39 +0000 (14:16 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 14 May 2017 19:10:08 +0000 (15:10 -0400)
Causing issues with stk on a4xx.. still probably a good idea, but seems
some debugging is needed first.

This reverts commit 3ab072d3c8643c66d8e07e63df970b792728bac6.

src/gallium/drivers/freedreno/freedreno_gmem.c

index c4dda564940c5effe79af67dc056bb7da6e9cbb0..03400717bfa211ab1a7c2abc5695d2808dc850af 100644 (file)
@@ -391,10 +391,7 @@ fd_gmem_render_tiles(struct fd_batch *batch)
        bool sysmem = false;
 
        if (ctx->emit_sysmem_prep) {
-               if (batch->num_draws == 0) {
-                       sysmem = true;
-               } else if (batch->cleared || batch->gmem_reason || (batch->num_draws > 5)) {
-                       // TODO maybe consider # of draws w/ blend enabled, etc?
+               if (batch->cleared || batch->gmem_reason || (batch->num_draws > 5)) {
                        DBG("GMEM: cleared=%x, gmem_reason=%x, num_draws=%u",
                                batch->cleared, batch->gmem_reason, batch->num_draws);
                } else if (!(fd_mesa_debug & FD_DBG_NOBYPASS)) {