panfrost: Only tag AFBC addresses when sampling
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 28 Jun 2019 07:17:55 +0000 (09:17 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 28 Jun 2019 13:40:52 +0000 (15:40 +0200)
commit7c745f6148d92bcbf2d27598f00c586cf106ed01
treec3e3a30d24871bf98e1b9259271e65857e59711f
parent35734129819ca7795adb9145123eb4eafea3a562
panfrost: Only tag AFBC addresses when sampling

Rendering to AFBC was broken, as the HW will complaint loudly if we pass
a tagged pointer in bifrost_render_target.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: 3609b50a6443 ("panfrost: Merge AFBC slab with BO backing")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_resource.c