Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

vcrtcm: add cursor buffer argument for push

push method also needs to know the push buffer for mouse
cursor because it separately pushes the mouse sprite

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
  • Loading branch information...
commit 49e463cc4a3925123ab6b0c7d3c5f6e7626d4611 1 parent 9b41c61
Ilija Hadzic authored
View
9 drivers/gpu/drm/vcrtcm/vcrtcm_ctd_methods.c
@@ -247,20 +247,23 @@ EXPORT_SYMBOL(vcrtcm_push_buffer_free);
/* the ctrc that is attached to the specified hal into the push buffer */
/* defined by pbd */
int vcrtcm_push(struct vcrtcm_dev_hal *vcrtcm_dev_hal,
- struct vcrtcm_push_buffer_descriptor *pbd)
+ struct vcrtcm_push_buffer_descriptor *fpbd,
+ struct vcrtcm_push_buffer_descriptor *cpbd)
{
struct vcrtcm_dev_info *vcrtcm_dev_info =
container_of(vcrtcm_dev_hal, struct vcrtcm_dev_info,
vcrtcm_dev_hal);
struct drm_crtc *crtc = vcrtcm_dev_info->drm_crtc;
- struct drm_gem_object *push_buffer = pbd->gpu_private;
+ struct drm_gem_object *push_buffer_fb = fpbd->gpu_private;
+ struct drm_gem_object *push_buffer_cursor = cpbd->gpu_private;
if (vcrtcm_dev_info->gpu_callbacks.push) {
VCRTCM_DEBUG("push for HAL %d.%d.%d\n",
vcrtcm_dev_info->hw_major,
vcrtcm_dev_info->hw_minor,
vcrtcm_dev_info->hw_flow);
- return vcrtcm_dev_info->gpu_callbacks.push(crtc, push_buffer);
+ return vcrtcm_dev_info->gpu_callbacks.push(crtc,
+ push_buffer_fb, push_buffer_cursor);
} else
return -ENOTSUPP;
}
View
3  include/drm/vcrtcm/vcrtcm_common.h
@@ -145,7 +145,8 @@ struct vcrtcm_gpu_callbacks {
/* CTD requests from GPU to push the buffer to it */
int (*push) (struct drm_crtc *scrtc,
- struct drm_gem_object *dbuf);
+ struct drm_gem_object *dbuf_fb,
+ struct drm_gem_object *dbuf_cursor);
};
Please sign in to comment.
Something went wrong with that request. Please try again.