search for: get_fb

Displaying 9 results from an estimated 9 matches for "get_fb".

2017 Jul 31
2
[PATCH] Add drm ioctl DRM_IOCTL_MODE_GETFB2 & associated helpers.
...gt;create_handle) { if (drm_is_current_master(file_priv) || capable(CAP_SYS_ADMIN) || drm_is_control_client(file_priv)) { - ret = fb->funcs->create_handle(fb, file_priv, + ret = fb->funcs->create_handle(fb, 0, file_priv, &r->handle); } else { /* GET_FB() is an unprivileged ioctl so we must not @@ -458,6 +459,82 @@ int drm_mode_getfb(struct drm_device *dev, return ret; } +/** + * drm_mode_getfb2 - get FB info + * @dev: drm device for the ioctl + * @data: data pointer for the ioctl + * @file_priv: drm file for the ioctl call + * + * Lookup the...
2017 Aug 01
1
[PATCH] Add drm ioctl DRM_IOCTL_MODE_GETFB2 & associated helpers.
...ret = fb->funcs->create_handle(fb, i, > > file_priv, > > + > > &r->handles[i]); > > + if (ret) > > + break; > > + } else { > > + /* GET_FB() is an unprivileged ioctl so we > > must > > + * not return a buffer-handle to non-master > > + * processes! For backwards-compatibility > > + * reasons, we cannot make GET_FB() > >...
2017 Aug 01
0
[PATCH] Add drm ioctl DRM_IOCTL_MODE_GETFB2 & associated helpers.
...nt_master(file_priv) || > + capable(CAP_SYS_ADMIN) || > + drm_is_control_client(file_priv)) { > + ret = fb->funcs->create_handle(fb, i, > file_priv, > + > &r->handles[i]); > + if (ret) > + break; > + } else { > + /* GET_FB() is an unprivileged ioctl so we > must > + * not return a buffer-handle to non-master > + * processes! For backwards-compatibility > + * reasons, we cannot make GET_FB() > privileged, > + * so just return an invalid handle for > + * non-masters. */ There...
2017 Aug 01
0
[PATCH] Add drm ioctl DRM_IOCTL_MODE_GETFB2 & associated helpers.
...te_handle(fb, i, > >> file_priv, > >> + > >> &r->handles[i]); > >> + if (ret) > >> + break; > >> + } else { > >> + /* GET_FB() is an unprivileged ioctl so we > >> must > >> + * not return a buffer-handle to > >> non-master > >> + * processes! For backwards-compatibility > >> + * reasons, we...
2019 Oct 15
0
[ANNOUNCE] xf86-video-ati 19.1.0
...mber, I'm no longer working for AMD but for Red Hat's graphics/input infrastructure team. I'm hoping that someone from my former team at AMD will step up to maintain this driver. Flora Cui (1): dri2: reply to client for WaitMSC request in any case Michel Dänzer (9): Retry get_fb_ptr in get_fb dri3: Always flush glamor before sharing pixmap storage with clients dri2: Re-use previous CRTC when possible if pick_best_crtc returns NULL Remove dri2_drawable_crtc parameter consider_disabled present: Check that we can get a KMS FB for flipping Don'...
2019 Oct 11
0
[ANNOUNCE] xf86-video-amdgpu 19.1.0
...September, I'm no longer working for AMD but for Red Hat's graphics infrastructure team. I'm hoping that someone from my former team at AMD will step up to maintain this driver. Flora Cui (1): dri2: reply to client for WaitMSC request in any case Michel Dänzer (13): Retry get_fb_ptr in get_fb dri3: Always flush glamor before sharing pixmap storage with clients dri2: Re-use previous CRTC when possible if pick_best_crtc returns NULL Remove dri2_drawable_crtc parameter consider_disabled present: Check that we can get a KMS FB for flipping Don'...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
...-1883,7 +1883,6 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = dev->dev_private; - struct amdgpu_framebuffer *amdgpu_fb; struct drm_framebuffer *target_fb; struct drm_gem_object *obj; struct amdgpu_bo *abo; @@ -1902,18 +1901,15 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, return 0; } - if (atomic) { - amdgpu_fb = to_amdgpu_framebuffer(fb); + if (atomic) target_fb = fb; - } else { - amdgpu_fb = to_amdgpu_framebuffer(...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
...-1883,7 +1883,6 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = dev->dev_private; - struct amdgpu_framebuffer *amdgpu_fb; struct drm_framebuffer *target_fb; struct drm_gem_object *obj; struct amdgpu_bo *abo; @@ -1902,18 +1901,15 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, return 0; } - if (atomic) { - amdgpu_fb = to_amdgpu_framebuffer(fb); + if (atomic) target_fb = fb; - } else { - amdgpu_fb = to_amdgpu_framebuffer(...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
...-1883,7 +1883,6 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = dev->dev_private; - struct amdgpu_framebuffer *amdgpu_fb; struct drm_framebuffer *target_fb; struct drm_gem_object *obj; struct amdgpu_bo *abo; @@ -1902,18 +1901,15 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, return 0; } - if (atomic) { - amdgpu_fb = to_amdgpu_framebuffer(fb); + if (atomic) target_fb = fb; - } else { - amdgpu_fb = to_amdgpu_framebuffer(...