drm/radeon/kms: fix handling of tex lookup disable in cs checker on r2xx
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 27 Oct 2010 05:02:35 +0000 (01:02 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:23 +0000 (13:32 -0800)
commit09727bc2e979da872d2e10d2b4208cae0576d2b0
treed3b435a9ac2a52d83dba50a857651fb821b71d1e
parent42cc0f2333445c302c039f8ec59c3dcff30b362b
drm/radeon/kms: fix handling of tex lookup disable in cs checker on r2xx

commit 43b93fbffc2c080dba2e84df6fce8d7e6c0a2581 upstream.

There are cases when multiple texture units have to be enabled,
but not actually used to sample.  This patch checks to see if
the lookup_disable bit is set and if so, skips the texture check.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=25544

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/r100.c
drivers/gpu/drm/radeon/r100_track.h
drivers/gpu/drm/radeon/r200.c
drivers/gpu/drm/radeon/radeon_reg.h