summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2019-10-22 19:49:47 -0700
committerKristian H. Kristensen <[email protected]>2019-11-07 16:40:27 -0800
commite58479088548a547e4a5df59797adf1f8003feca (patch)
treedde4ff920c7f3e425e492536235aa17bec372809 /src
parent47e2c195115854452a5560c59f82bebfc989694a (diff)
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 <[email protected]> Acked-by: Eric Anholt <[email protected]> Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_gmem.c8
1 files changed, 8 insertions, 0 deletions
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++;