lima: reset scissor state if scissor test is disabled
authorIcenowy Zheng <icenowy@aosc.io>
Mon, 16 Sep 2019 16:07:40 +0000 (00:07 +0800)
committerVasily Khoruzhick <anarsoul@gmail.com>
Tue, 17 Sep 2019 04:13:24 +0000 (04:13 +0000)
commitd61b67b41d64bba83ace7810bbcd2f7baefd8cb9
tree60d994959d955b0c29797843aa4c96668e9d8590
parent533987b5f434176bc3eb6f7ebedf15e5f969f134
lima: reset scissor state if scissor test is disabled

The PLBU seems to preserve scissor state between draws, and since lima doesn't
emit PLBU_CMD_SCISSORS() if scissor test is disabled, it uses state from previous draw.

Fix it by emitting PLBU_CMD_SCISSORS() for full fb if scissor test is disabled.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/lima_draw.c