drm/radeon: simplify register checker
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 23 Aug 2015 00:57:35 +0000 (03:57 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Oct 2015 20:08:26 +0000 (16:08 -0400)
commit4a985353d461951e4ed51abc281c09a780d30058
tree7c187c3306191119faab1503eecca4fb6cf2460e
parent1694467b96cadd1b166b3bd0365b2431a7685143
drm/radeon: simplify register checker

To avoid having to distinguish between CAYMAN or older on every register
check, place a pointer in evergreen_cs_track and use it unconditionally.
Also make use of the fact that both reg_safe_bm[] arrays are of the same
length to remove another CAYMAN check.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen_cs.c