radv: fix scissor computation when using half-pixel viewport offset
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 17 Apr 2018 20:07:26 +0000 (22:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 17 Apr 2018 20:12:14 +0000 (22:12 +0200)
commit893e19efb74edd6133a607e09338bf5d449632f1
treee41d8dca48a8f519e54ea0aecac2a11d6dbbeaf6
parent608d70bc02a968ee2b21a5db0f54247d877c8196
radv: fix scissor computation when using half-pixel viewport offset

'scale[i]' can be non-integer.

Original patch by Philip Rebohle.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106074
Fixes: 0f3de89a56a ("radv: Use the guard band.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Niuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/si_cmd_buffer.c