OSDN Git Service

nv30: Fix max width / height checks in nv30 sifm code
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 Sep 2015 19:50:48 +0000 (21:50 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 11 Sep 2015 17:53:32 +0000 (18:53 +0100)
commit4b1ef5e84269a98867292fced0b5990f1c692f5f
tree1fd44a47a58cccf82d665630c68cc586f5624757
parent95bc059c50fa3679ee9d02cd1fd9f82239fb353f
nv30: Fix max width / height checks in nv30 sifm code

The sifm object has a limit of 1024x1024 for its input size and 2048x2048
for its output. The code checking this was trying to be clever resulting
in it seeing a surface of e.g 1024x256 being outside of the input size
limit.

This commit fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 87073c69f3e253044bc235f34917aaa89041a63c)
src/gallium/drivers/nouveau/nv30/nv30_transfer.c