radeonsi: fix assertion failure by using the correct type
authorMarek Olšák <marek.olsak@amd.com>
Wed, 27 Feb 2019 23:31:54 +0000 (18:31 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 1 Apr 2019 16:21:20 +0000 (12:21 -0400)
commit3ad2a9b3faa19e29fe1c2a28c712f265ee29423b
treecf4997d5ff0442bfd367543185de357c15f0b3a6
parentd4e0fbc92fd08be504f328144c874da47b78e5dc
radeonsi: fix assertion failure by using the correct type

src/gallium/drivers/radeonsi/si_state_viewport.c:196: si_emit_guardband:
Assertion `vp_as_scissor.maxx <= max_viewport_size[vp_as_scissor.quant_mode]
&& vp_as_scissor.maxy <= max_viewport_size[vp_as_scissor.quant_mode]' failed.

The comparison was unsigned, so negative maxx or maxy would fail.

Fixes: 3c540e0a7488 "radeonsi: Fix guardband computation for large render targets"
src/gallium/drivers/radeonsi/si_state_viewport.c