From: Kristian H. Kristensen Date: Wed, 23 Oct 2019 02:49:47 +0000 (-0700) Subject: freedreno: Use bypass rendering for tessellation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e58479088548a547e4a5df59797adf1f8003feca;p=mesa.git freedreno: Use bypass rendering for tessellation It seems like tiling could work in the Adreno architecture, but we've only ever seen bypass rendering with tessellation. For now, let's do that too. Signed-off-by: Kristian H. Kristensen Acked-by: Eric Anholt Reviewed-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c index 65ae8b5a825..851abb9c6cc 100644 --- a/src/gallium/drivers/freedreno/freedreno_gmem.c +++ b/src/gallium/drivers/freedreno/freedreno_gmem.c @@ -458,6 +458,14 @@ fd_gmem_render_tiles(struct fd_batch *batch) sysmem = true; } + /* Tessellation doesn't seem to support tiled rendering so fall back to + * bypass. + */ + if (batch->tessellation) { + debug_assert(ctx->emit_sysmem_prep); + sysmem = true; + } + fd_reset_wfi(batch); ctx->stats.batch_total++;