diff options
author | Rob Clark <[email protected]> | 2017-05-06 14:00:35 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-05-06 14:16:33 -0400 |
commit | 6050d5bf3d8d0043386de35cad4efa77e8be957e (patch) | |
tree | 54a904c73e0ec0792855fa650a877d025d7b1d17 /src/gallium/drivers/freedreno/a3xx | |
parent | 4fadfbf17645ed8045ac090ef2c704303a107c77 (diff) |
freedreno/a3xx: fix hang w/ large render targets and small gmem
Possibly other gen's have a similar limit. Fixes glmark2 -b shadow
with larger resolutions on devices with small gmem (for example,
fullscreen 1080p on 8x16/db410c).
Cc: [email protected]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_gmem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c index 493fdd29e5c..0ec769b9d6d 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c @@ -149,6 +149,9 @@ use_hw_binning(struct fd_batch *batch) if (gmem->minx || gmem->miny) return false; + if ((gmem->maxpw * gmem->maxph) > 32) + return false; + return fd_binning_enabled && ((gmem->nbins_x * gmem->nbins_y) > 2); } |