freedreno/gmem: make noscis debug actually do something on a6xx

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5188>
This commit is contained in:
Rob Clark
2020-05-22 12:28:38 -07:00
committed by Marge Bot
parent 3024d00900
commit fec8288081
@@ -463,7 +463,7 @@ gmem_key_init(struct fd_batch *batch, bool assume_zs, bool no_scis_opt)
/* NOTE: on a6xx, the max-scissor-rect is handled in fd6_gmem, and
* we just rely on CP_COND_EXEC to skip bins with no geometry.
*/
if ((fd_mesa_debug & FD_DBG_NOSCIS) || no_scis_opt || is_a6xx(screen)) {
if (no_scis_opt || is_a6xx(screen)) {
key->minx = 0;
key->miny = 0;
key->width = pfb->width;
@@ -471,6 +471,13 @@ gmem_key_init(struct fd_batch *batch, bool assume_zs, bool no_scis_opt)
} else {
struct pipe_scissor_state *scissor = &batch->max_scissor;
if (fd_mesa_debug & FD_DBG_NOSCIS) {
scissor->minx = 0;
scissor->miny = 0;
scissor->maxx = pfb->width;
scissor->maxy = pfb->height;
}
/* round down to multiple of alignment: */
key->minx = scissor->minx & ~(screen->gmem_alignw - 1);
key->miny = scissor->miny & ~(screen->gmem_alignh - 1);