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)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Oct 2010 01:27:04 +0000 (11:27 +1000)
commit43b93fbffc2c080dba2e84df6fce8d7e6c0a2581
tree10b747157c8fb249b7b86807281d6d61fe5a39d3
parent135cba0dc399fdd47bd3ae305c1db75fcd77243f
drm/radeon/kms: fix handling of tex lookup disable in cs checker on r2xx

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>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
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