radv: Clamp framebuffer dimensions to min. attachment dimensions.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 19 Feb 2017 00:16:19 +0000 (01:16 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 19 Feb 2017 09:13:01 +0000 (10:13 +0100)
commite12cf3f9bf4d71579360cb6735c1023bf39aaad3
tree775570e03228f2b57a7658267bc6a58e0555454d
parentad019bf5c65fbc10505c84c43050b5299192ca03
radv: Clamp framebuffer dimensions to min. attachment dimensions.

Even though the preferred stance is not to fix incorrect applications
via the driver, this prevents some nasty GPU hangs.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c