freedreno/gmem: fix hw binning hangs with large render targets
authorRob Clark <robdclark@gmail.com>
Tue, 16 May 2017 12:37:50 +0000 (08:37 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 16 May 2017 20:34:21 +0000 (16:34 -0400)
commitdafc2f1887e192376a176bbd2bb346ad48fc13ae
tree5f1831ad3193e0cdfb1c0e3279bd53f715d26740
parentda9a1cb8a684cf4a30e6c292a80e7cab4c89482d
freedreno/gmem: fix hw binning hangs with large render targets

On all 3 gens, we have 4 bits for width and height in the VSC pipe
config.  And overflow results in setting width and/or height to zero
which causes hangs.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
src/gallium/drivers/freedreno/a4xx/fd4_gmem.c
src/gallium/drivers/freedreno/a5xx/fd5_gmem.c