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)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Jul 2010 01:59:22 +0000 (11:59 +1000)
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r200.c

index a03f8939f3278ec2243d10d29aabcf012f6d27a8..0266d72e0a4cacaa8e52a79c85e6536e11b5df09 100644 (file)
@@ -415,6 +415,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: