Commit 95b1469e authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/fbcon/nv50-: use NVIDIA's headers for copyarea()

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent c7acff98
...@@ -82,15 +82,17 @@ nv50_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region) ...@@ -82,15 +82,17 @@ nv50_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region)
if (ret) if (ret)
return ret; return ret;
PUSH_NVSQ(push, NV502D, 0x0110, 0); PUSH_MTHD(push, NV502D, WAIT_FOR_IDLE, 0);
PUSH_NVSQ(push, NV502D, 0x08b0, region->dx,
0x08b4, region->dy, PUSH_MTHD(push, NV502D, SET_PIXELS_FROM_MEMORY_DST_X0, region->dx,
0x08b8, region->width, SET_PIXELS_FROM_MEMORY_DST_Y0, region->dy,
0x08bc, region->height); SET_PIXELS_FROM_MEMORY_DST_WIDTH, region->width,
PUSH_NVSQ(push, NV502D, 0x08d0, 0, SET_PIXELS_FROM_MEMORY_DST_HEIGHT, region->height);
0x08d4, region->sx,
0x08d8, 0, PUSH_MTHD(push, NV502D, SET_PIXELS_FROM_MEMORY_SRC_X0_FRAC, 0,
0x08dc, region->sy); SET_PIXELS_FROM_MEMORY_SRC_X0_INT, region->sx,
SET_PIXELS_FROM_MEMORY_SRC_Y0_FRAC, 0,
PIXELS_FROM_MEMORY_SRC_Y0_INT, region->sy);
PUSH_KICK(push); PUSH_KICK(push);
return 0; return 0;
} }
......
...@@ -82,15 +82,17 @@ nvc0_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region) ...@@ -82,15 +82,17 @@ nvc0_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region)
if (ret) if (ret)
return ret; return ret;
PUSH_NVIM(push, NV902D, 0x0110, 0); PUSH_IMMD(push, NV902D, WAIT_FOR_IDLE, 0);
PUSH_NVSQ(push, NV902D, 0x08b0, region->dx,
0x08b4, region->dy, PUSH_MTHD(push, NV902D, SET_PIXELS_FROM_MEMORY_DST_X0, region->dx,
0x08b8, region->width, SET_PIXELS_FROM_MEMORY_DST_Y0, region->dy,
0x08bc, region->height); SET_PIXELS_FROM_MEMORY_DST_WIDTH, region->width,
PUSH_NVSQ(push, NV902D, 0x08d0, 0, SET_PIXELS_FROM_MEMORY_DST_HEIGHT, region->height);
0x08d4, region->sx,
0x08d8, 0, PUSH_MTHD(push, NV902D, SET_PIXELS_FROM_MEMORY_SRC_X0_FRAC, 0,
0x08dc, region->sy); SET_PIXELS_FROM_MEMORY_SRC_X0_INT, region->sx,
SET_PIXELS_FROM_MEMORY_SRC_Y0_FRAC, 0,
PIXELS_FROM_MEMORY_SRC_Y0_INT, region->sy);
PUSH_KICK(push); PUSH_KICK(push);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment