提交 036a12b6 编写于 作者: B Ben Skeggs

drm/nv50/kms: remove a couple of cursor-related stub functions

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 6aac6ced
...@@ -633,6 +633,8 @@ nouveau_display_resume(struct drm_device *dev, bool runtime) ...@@ -633,6 +633,8 @@ nouveau_display_resume(struct drm_device *dev, bool runtime)
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
u32 offset = nv_crtc->cursor.nvbo->bo.offset; u32 offset = nv_crtc->cursor.nvbo->bo.offset;
if (!nv_crtc->cursor.set_offset)
continue;
nv_crtc->cursor.set_offset(nv_crtc, offset); nv_crtc->cursor.set_offset(nv_crtc, offset);
nv_crtc->cursor.set_pos(nv_crtc, nv_crtc->cursor_saved_x, nv_crtc->cursor.set_pos(nv_crtc, nv_crtc->cursor_saved_x,
nv_crtc->cursor_saved_y); nv_crtc->cursor_saved_y);
......
...@@ -1343,16 +1343,6 @@ static const struct drm_crtc_funcs nv50_crtc_func = { ...@@ -1343,16 +1343,6 @@ static const struct drm_crtc_funcs nv50_crtc_func = {
.page_flip = nouveau_crtc_page_flip, .page_flip = nouveau_crtc_page_flip,
}; };
static void
nv50_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y)
{
}
static void
nv50_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset)
{
}
static int static int
nv50_crtc_create(struct drm_device *dev, int index) nv50_crtc_create(struct drm_device *dev, int index)
{ {
...@@ -1371,8 +1361,6 @@ nv50_crtc_create(struct drm_device *dev, int index) ...@@ -1371,8 +1361,6 @@ nv50_crtc_create(struct drm_device *dev, int index)
head->base.set_color_vibrance = nv50_crtc_set_color_vibrance; head->base.set_color_vibrance = nv50_crtc_set_color_vibrance;
head->base.color_vibrance = 50; head->base.color_vibrance = 50;
head->base.vibrant_hue = 0; head->base.vibrant_hue = 0;
head->base.cursor.set_offset = nv50_cursor_set_offset;
head->base.cursor.set_pos = nv50_cursor_set_pos;
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
head->base.lut.r[i] = i << 8; head->base.lut.r[i] = i << 8;
head->base.lut.g[i] = i << 8; head->base.lut.g[i] = i << 8;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册