Commit f3d1ccc1 authored by Andrew Randrianasulu's avatar Andrew Randrianasulu Committed by Dave Airlie

drm/radeon/kms/r200: fix bug in CS parser

The checks for CUBE and 3D textures were inverted.

fixes fdo bug 24159

agd5f: added comments for clarity.
Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 700a0cc0
...@@ -371,13 +371,16 @@ int r200_packet0_check(struct radeon_cs_parser *p, ...@@ -371,13 +371,16 @@ int r200_packet0_check(struct radeon_cs_parser *p,
case 5: case 5:
case 6: case 6:
case 7: case 7:
/* 1D/2D */
track->textures[i].tex_coord_type = 0; track->textures[i].tex_coord_type = 0;
break; break;
case 1: case 1:
track->textures[i].tex_coord_type = 1; /* CUBE */
track->textures[i].tex_coord_type = 2;
break; break;
case 2: case 2:
track->textures[i].tex_coord_type = 2; /* 3D */
track->textures[i].tex_coord_type = 1;
break; break;
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment