swr: set an explicit clear_rect if scissor is not enabled.
authorBruce Cherniak <bruce.cherniak@intel.com>
Mon, 26 Jun 2017 15:26:26 +0000 (10:26 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 26 Jun 2017 16:30:08 +0000 (11:30 -0500)
commit6fafba0e677ec9a6dfa551e34b59814e6f643e21
tree5be814aa225592c094948fd9db0145455c0eb2ef
parent0e1e5a2b14cb602030928431bec45af394be43e3
swr: set an explicit clear_rect if scissor is not enabled.

Fix regression of "no rendering" on simple apps like glxgears by
setting an explicit full surface clear_rect when scissor is not
enabled.

This regressed with commit 00173d91 "st/mesa: don't set 16
scissors and 16 viewports if they're unused" due to an assumption
that a default scissor rect is always set, which was the case prior
to this optimization.

Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_clear.cpp