]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon/r200: handle more hw tex coord types
authorRoland Scheidegger <sroland@vmware.com>
Sat, 12 Jun 2010 17:31:10 +0000 (13:31 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:49 +0000 (10:20 -0700)
commit 688acaa2897462e4c5e2482496e2868db0760809 upstream.

Code did not handle projected 2d and depth coordinates, meaning potentially
set 3d or cube special handling might stick.
(Not sure what depth coord actually does, but I guess handling it
like a normal coordinate is the right thing to do.)
Might be related to https://bugs.freedesktop.org/show_bug.cgi?id=26428

Signed-off-by: sroland@vmware.com
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/r200.c

index eb740fc3549f82c5530c5450f4862ca8cf764fa3..ccf42c3dd1be66a246c4cef9fe0670e4239fb647 100644 (file)
@@ -368,6 +368,8 @@ int r200_packet0_check(struct radeon_cs_parser *p,
                /* 2D, 3D, CUBE */
                switch (tmp) {
                case 0:
+               case 3:
+               case 4:
                case 5:
                case 6:
                case 7: