mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-30 13:10:15 +01:00
nouveau: Use "new" NV40 USER control regs.
Probably entirely pointless, but a simple change in any case.
This commit is contained in:
parent
7246a33dd1
commit
53ab6026cf
1 changed files with 8 additions and 1 deletions
|
|
@ -295,12 +295,19 @@ nouveau_fifo_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,
|
|||
DRM_INFO("Allocating FIFO number %d\n", channel);
|
||||
|
||||
/* Locate channel's user control regs */
|
||||
if (dev_priv->card_type < NV_50) {
|
||||
if (dev_priv->card_type < NV_40) {
|
||||
chan->user = NV03_USER(channel);
|
||||
chan->user_size = NV03_USER_SIZE;
|
||||
chan->put = NV03_USER_DMA_PUT(channel);
|
||||
chan->get = NV03_USER_DMA_GET(channel);
|
||||
chan->ref_cnt = NV03_USER_REF_CNT(channel);
|
||||
} else
|
||||
if (dev_priv->card_type < NV_50) {
|
||||
chan->user = NV40_USER(channel);
|
||||
chan->user_size = NV40_USER_SIZE;
|
||||
chan->put = NV40_USER_DMA_PUT(channel);
|
||||
chan->get = NV40_USER_DMA_GET(channel);
|
||||
chan->ref_cnt = NV40_USER_REF_CNT(channel);
|
||||
} else {
|
||||
chan->user = NV50_USER(channel);
|
||||
chan->user_size = NV50_USER_SIZE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue