Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345377
b: refs/heads/master
c: 5f8e256
h: refs/heads/master
i:
  345375: d24654d
v: v3
  • Loading branch information
Ben Skeggs committed Nov 28, 2012
1 parent 0a288b9 commit 4711771
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 150ccf161f5a83468409afa689081bb66f7d4585
refs/heads/master: 5f8e256704e86df795037b18395fdf102b75199e
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/include/subdev/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ void nv30_fb_tile_init(struct nouveau_fb *, int i, u32 addr, u32 size,
void nv30_fb_tile_fini(struct nouveau_fb *, int i, struct nouveau_fb_tile *);

int nv41_fb_init(struct nouveau_object *);
int nv44_fb_init(struct nouveau_object *);
void nv41_fb_tile_prog(struct nouveau_fb *, int, struct nouveau_fb_tile *);

int nv44_fb_init(struct nouveau_object *);
void nv44_fb_tile_prog(struct nouveau_fb *, int, struct nouveau_fb_tile *);

void nv46_fb_tile_init(struct nouveau_fb *, int i, u32 addr, u32 size,
u32 pitch, u32 flags, struct nouveau_fb_tile *);

Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nv40.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ struct nv40_fb_priv {
struct nouveau_fb base;
};

static void
nv40_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
struct nouveau_fb_tile *tile)
{
tile->zcomp = 0x00000000;
}

static int
nv40_fb_init(struct nouveau_object *object)
{
Expand Down Expand Up @@ -72,8 +79,9 @@ nv40_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv->base.memtype_valid = nv04_fb_memtype_valid;
priv->base.tile.regions = 8;
priv->base.tile.init = nv30_fb_tile_init;
priv->base.tile.comp = nv40_fb_tile_comp;
priv->base.tile.fini = nv30_fb_tile_fini;
priv->base.tile.prog = nv10_fb_tile_prog;
priv->base.tile.prog = nv20_fb_tile_prog;
return nouveau_fb_created(&priv->base);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nv41.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ nv41_fb_tile_prog(struct nouveau_fb *pfb, int i, struct nouveau_fb_tile *tile)
nv_wr32(pfb, 0x100604 + (i * 0x10), tile->limit);
nv_wr32(pfb, 0x100608 + (i * 0x10), tile->pitch);
nv_wr32(pfb, 0x100600 + (i * 0x10), tile->addr);
nv_wr32(pfb, 0x100700 + (i * 0x04), tile->zcomp);
}


int
nv41_fb_init(struct nouveau_object *object)
{
Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ nv44_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch,
tile->pitch = pitch;
}

void
nv44_fb_tile_prog(struct nouveau_fb *pfb, int i, struct nouveau_fb_tile *tile)
{
nv_wr32(pfb, 0x100604 + (i * 0x10), tile->limit);
nv_wr32(pfb, 0x100608 + (i * 0x10), tile->pitch);
nv_wr32(pfb, 0x100600 + (i * 0x10), tile->addr);
}

int
nv44_fb_init(struct nouveau_object *object)
{
Expand Down Expand Up @@ -84,7 +92,7 @@ nv44_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv->base.tile.regions = 12;
priv->base.tile.init = nv44_fb_tile_init;
priv->base.tile.fini = nv30_fb_tile_fini;
priv->base.tile.prog = nv41_fb_tile_prog;
priv->base.tile.prog = nv44_fb_tile_prog;
return nouveau_fb_created(&priv->base);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nv46.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ nv46_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv->base.tile.regions = 15;
priv->base.tile.init = nv46_fb_tile_init;
priv->base.tile.fini = nv30_fb_tile_fini;
priv->base.tile.prog = nv41_fb_tile_prog;
priv->base.tile.prog = nv44_fb_tile_prog;
return nouveau_fb_created(&priv->base);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nv4e.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nv4e_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv->base.tile.regions = 12;
priv->base.tile.init = nv46_fb_tile_init;
priv->base.tile.fini = nv30_fb_tile_fini;
priv->base.tile.prog = nv41_fb_tile_prog;
priv->base.tile.prog = nv44_fb_tile_prog;
return nouveau_fb_created(&priv->base);
}

Expand Down

0 comments on commit 4711771

Please sign in to comment.