panfrost/decode: Print AFBC struct when appropriate
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 25 Jun 2019 06:21:15 +0000 (08:21 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 27 Jun 2019 07:12:56 +0000 (09:12 +0200)
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pandecode/decode.c

index 6db56ee..8f96624 100644 (file)
@@ -619,8 +619,7 @@ pandecode_render_target(uint64_t gpu_va, unsigned job_no, const struct bifrost_f
 
                 pandecode_rt_format(rt->format);
 
-                /* TODO: How the actual heck does AFBC enabling work here? */
-                if (0) {
+                if (rt->format.block == MALI_MFBD_BLOCK_AFBC) {
                         pandecode_log(".afbc = {\n");
                         pandecode_indent++;