mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
drm/radeon/kms: fix vline register for second head.
Both r100/r600 had this wrong, use the macro to extract the register to relocate. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
49c458e544
commit
d4ac6a05d5
@ -829,7 +829,7 @@ int r100_cs_packet_parse_vline(struct radeon_cs_parser *p)
|
|||||||
|
|
||||||
header = radeon_get_ib_value(p, h_idx);
|
header = radeon_get_ib_value(p, h_idx);
|
||||||
crtc_id = radeon_get_ib_value(p, h_idx + 5);
|
crtc_id = radeon_get_ib_value(p, h_idx + 5);
|
||||||
reg = header >> 2;
|
reg = CP_PACKET0_GET_REG(header);
|
||||||
mutex_lock(&p->rdev->ddev->mode_config.mutex);
|
mutex_lock(&p->rdev->ddev->mode_config.mutex);
|
||||||
obj = drm_mode_object_find(p->rdev->ddev, crtc_id, DRM_MODE_OBJECT_CRTC);
|
obj = drm_mode_object_find(p->rdev->ddev, crtc_id, DRM_MODE_OBJECT_CRTC);
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
|
@ -252,7 +252,7 @@ static int r600_cs_packet_parse_vline(struct radeon_cs_parser *p)
|
|||||||
|
|
||||||
header = radeon_get_ib_value(p, h_idx);
|
header = radeon_get_ib_value(p, h_idx);
|
||||||
crtc_id = radeon_get_ib_value(p, h_idx + 2 + 7 + 1);
|
crtc_id = radeon_get_ib_value(p, h_idx + 2 + 7 + 1);
|
||||||
reg = header >> 2;
|
reg = CP_PACKET0_GET_REG(header);
|
||||||
mutex_lock(&p->rdev->ddev->mode_config.mutex);
|
mutex_lock(&p->rdev->ddev->mode_config.mutex);
|
||||||
obj = drm_mode_object_find(p->rdev->ddev, crtc_id, DRM_MODE_OBJECT_CRTC);
|
obj = drm_mode_object_find(p->rdev->ddev, crtc_id, DRM_MODE_OBJECT_CRTC);
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
|
Loading…
Reference in New Issue
Block a user