Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345599
b: refs/heads/master
c: 278a334
h: refs/heads/master
i:
  345597: fb28257
  345595: 13abda7
  345591: 663ae31
  345583: 534a7c4
  345567: b13bf09
  345535: 704a3d0
  345471: 221be98
  345343: b8d0a94
  345087: b8c0a95
v: v3
  • Loading branch information
Alex Deucher committed Dec 14, 2012
1 parent 19eab51 commit aaac4fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd459e525f4faeefa0bf78e1bcba3e04496b2cb5
refs/heads/master: 278a334cbc96d3da66d56235b8ce84081e9a1892
12 changes: 12 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ static int radeon_cs_get_ring(struct radeon_cs_parser *p, u32 ring, s32 priority
} else
p->ring = RADEON_RING_TYPE_GFX_INDEX;
break;
case RADEON_CS_RING_DMA:
if (p->rdev->family >= CHIP_CAYMAN) {
if (p->priority > 0)
p->ring = R600_RING_TYPE_DMA_INDEX;
else
p->ring = CAYMAN_RING_TYPE_DMA1_INDEX;
} else if (p->rdev->family >= CHIP_R600) {
p->ring = R600_RING_TYPE_DMA_INDEX;
} else {
return -EINVAL;
}
break;
}
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/uapi/drm/radeon_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ struct drm_radeon_gem_va {
/* The second dword of RADEON_CHUNK_ID_FLAGS is a uint32 that sets the ring type */
#define RADEON_CS_RING_GFX 0
#define RADEON_CS_RING_COMPUTE 1
#define RADEON_CS_RING_DMA 2
/* The third dword of RADEON_CHUNK_ID_FLAGS is a sint32 that sets the priority */
/* 0 = normal, + = higher priority, - = lower priority */

Expand Down

0 comments on commit aaac4fa

Please sign in to comment.