diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2013-01-02 18:27:43 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-01-31 16:24:43 -0500 |
commit | 40592a17b8747903be95338f461573916a71d739 (patch) | |
tree | 0255123d601f1be2c11322ecabdcc368b81a1b16 /drivers/gpu/drm/radeon/radeon.h | |
parent | 9ffb7a6dca4fd260db91c808efd4d5c56057600c (diff) |
drm/radeon: refactor vline packet parsing function
vline packet parsing function for R600 and Evergreen+ are
the same, except that they use different registers. Factor
out the algorithm into a common function that uses register
table passed from ASIC-specific caller.
This reduces ASIC-specific function to (trivial) setup
of register table and call into the common function.
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 72c4836162ec..5caeca38383d 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -1976,7 +1976,9 @@ int radeon_cs_packet_parse(struct radeon_cs_parser *p, | |||
1976 | struct radeon_cs_packet *pkt, | 1976 | struct radeon_cs_packet *pkt, |
1977 | unsigned idx); | 1977 | unsigned idx); |
1978 | bool radeon_cs_packet_next_is_pkt3_nop(struct radeon_cs_parser *p); | 1978 | bool radeon_cs_packet_next_is_pkt3_nop(struct radeon_cs_parser *p); |
1979 | 1979 | int r600_cs_common_vline_parse(struct radeon_cs_parser *p, | |
1980 | uint32_t *vline_start_end, | ||
1981 | uint32_t *vline_status); | ||
1980 | 1982 | ||
1981 | #include "radeon_object.h" | 1983 | #include "radeon_object.h" |
1982 | 1984 | ||