freedreno: add is_a3xx()/is_a4xx() helpers
[mesa.git] / src / gallium / drivers / freedreno / freedreno_gmem.c
index 7f6c8476cdb1a8614cd477686d4ff02c75449580..4040d1f76152f6862188cdb9d639020394ee561c 100644 (file)
@@ -69,7 +69,9 @@
 
 static uint32_t bin_width(struct fd_context *ctx)
 {
-       if (ctx->screen->gpu_id >= 300)
+       if (is_a4xx(ctx->screen))
+               return 1024;
+       if (is_a3xx(ctx->screen))
                return 992;
        return 512;
 }
@@ -105,7 +107,7 @@ calculate_tiles(struct fd_context *ctx)
                max_width /= 2;
        }
 
-       if (fd_mesa_debug & FD_DBG_DSCIS) {
+       if (fd_mesa_debug & FD_DBG_NOSCIS) {
                minx = 0;
                miny = 0;
                width = pfb->width;
@@ -324,7 +326,7 @@ fd_gmem_render_tiles(struct fd_context *ctx)
                if (ctx->cleared || ctx->gmem_reason || (ctx->num_draws > 5)) {
                        DBG("GMEM: cleared=%x, gmem_reason=%x, num_draws=%u",
                                ctx->cleared, ctx->gmem_reason, ctx->num_draws);
-               } else if (!(fd_mesa_debug & FD_DBG_DBYPASS)) {
+               } else if (!(fd_mesa_debug & FD_DBG_NOBYPASS)) {
                        sysmem = true;
                }
        }