All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Help on drmModeSetPlane
@ 2015-04-15  8:49 Xie, William
  2015-04-15 11:22 ` Ville Syrjälä
  0 siblings, 1 reply; 12+ messages in thread
From: Xie, William @ 2015-04-15  8:49 UTC (permalink / raw)
  To: DRI Development


[-- Attachment #1.1: Type: text/plain, Size: 1087 bytes --]

To make it more specific,

For example:
1: video frame size is 1280x720,
2: screen resolution is 3200x1800,

How can I set crtc and src parameters?

1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)

Which one is correct?

William

From: Xie, William
Sent: Wednesday, April 15, 2015 3:55 PM
To: DRI Development; DRI Development
Subject: Help on drmModeSetPlane

Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?

int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
                                    uint32_t fb_id, uint32_t flags,
                                    int32_t crtc_x, int32_t crtc_y,
                                    uint32_t crtc_w, uint32_t crtc_h,
                                    uint32_t src_x, uint32_t src_y,
                                    uint32_t src_w, uint32_t src_h)


My problem is, whatever value I set, the video is not full screen mode,
Anything I missed?

Thanks
William





[-- Attachment #1.2: Type: text/html, Size: 6382 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Help on drmModeSetPlane
  2015-04-15  8:49 Help on drmModeSetPlane Xie, William
@ 2015-04-15 11:22 ` Ville Syrjälä
  2015-04-15 14:24   ` Xie, William
  0 siblings, 1 reply; 12+ messages in thread
From: Ville Syrjälä @ 2015-04-15 11:22 UTC (permalink / raw)
  To: Xie, William; +Cc: DRI Development

On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> To make it more specific,
> 
> For example:
> 1: video frame size is 1280x720,
> 2: screen resolution is 3200x1800,
> 
> How can I set crtc and src parameters?
> 
> 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> 
> Which one is correct?

2 is correct.

What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV
the hardware lost the plane scaling ability. It's coming back on SKL.

> 
> William
> 
> From: Xie, William
> Sent: Wednesday, April 15, 2015 3:55 PM
> To: DRI Development; DRI Development
> Subject: Help on drmModeSetPlane
> 
> Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> 
> int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
>                                     uint32_t fb_id, uint32_t flags,
>                                     int32_t crtc_x, int32_t crtc_y,
>                                     uint32_t crtc_w, uint32_t crtc_h,
>                                     uint32_t src_x, uint32_t src_y,
>                                     uint32_t src_w, uint32_t src_h)
> 
> 
> My problem is, whatever value I set, the video is not full screen mode,
> Anything I missed?
> 
> Thanks
> William
> 
> 
> 
> 

> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: Help on drmModeSetPlane
  2015-04-15 11:22 ` Ville Syrjälä
@ 2015-04-15 14:24   ` Xie, William
  2015-04-15 14:33     ` Ville Syrjälä
  0 siblings, 1 reply; 12+ messages in thread
From: Xie, William @ 2015-04-15 14:24 UTC (permalink / raw)
  To: ville.syrjala; +Cc: DRI Development

Oh, I tried it on BDW.
So we need to use other way to scale the video to full screen?

William


-----Original Message-----
From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com] 
Sent: Wednesday, April 15, 2015 7:23 PM
To: Xie, William
Cc: DRI Development
Subject: Re: Help on drmModeSetPlane

On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> To make it more specific,
> 
> For example:
> 1: video frame size is 1280x720,
> 2: screen resolution is 3200x1800,
> 
> How can I set crtc and src parameters?
> 
> 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> 
> Which one is correct?

2 is correct.

What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV the hardware lost the plane scaling ability. It's coming back on SKL.

> 
> William
> 
> From: Xie, William
> Sent: Wednesday, April 15, 2015 3:55 PM
> To: DRI Development; DRI Development
> Subject: Help on drmModeSetPlane
> 
> Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> 
> int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
>                                     uint32_t fb_id, uint32_t flags,
>                                     int32_t crtc_x, int32_t crtc_y,
>                                     uint32_t crtc_w, uint32_t crtc_h,
>                                     uint32_t src_x, uint32_t src_y,
>                                     uint32_t src_w, uint32_t src_h)
> 
> 
> My problem is, whatever value I set, the video is not full screen 
> mode, Anything I missed?
> 
> Thanks
> William
> 
> 
> 
> 

> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


--
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Help on drmModeSetPlane
  2015-04-15 14:24   ` Xie, William
@ 2015-04-15 14:33     ` Ville Syrjälä
  2015-04-17  9:30       ` Xie, William
  0 siblings, 1 reply; 12+ messages in thread
From: Ville Syrjälä @ 2015-04-15 14:33 UTC (permalink / raw)
  To: Xie, William; +Cc: DRI Development

On Wed, Apr 15, 2015 at 02:24:14PM +0000, Xie, William wrote:
> Oh, I tried it on BDW.
> So we need to use other way to scale the video to full screen?

Yes, unfortunately.

> 
> William
> 
> 
> -----Original Message-----
> From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com] 
> Sent: Wednesday, April 15, 2015 7:23 PM
> To: Xie, William
> Cc: DRI Development
> Subject: Re: Help on drmModeSetPlane
> 
> On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> > To make it more specific,
> > 
> > For example:
> > 1: video frame size is 1280x720,
> > 2: screen resolution is 3200x1800,
> > 
> > How can I set crtc and src parameters?
> > 
> > 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> > 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> > 
> > Which one is correct?
> 
> 2 is correct.
> 
> What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV the hardware lost the plane scaling ability. It's coming back on SKL.
> 
> > 
> > William
> > 
> > From: Xie, William
> > Sent: Wednesday, April 15, 2015 3:55 PM
> > To: DRI Development; DRI Development
> > Subject: Help on drmModeSetPlane
> > 
> > Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> > 
> > int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
> >                                     uint32_t fb_id, uint32_t flags,
> >                                     int32_t crtc_x, int32_t crtc_y,
> >                                     uint32_t crtc_w, uint32_t crtc_h,
> >                                     uint32_t src_x, uint32_t src_y,
> >                                     uint32_t src_w, uint32_t src_h)
> > 
> > 
> > My problem is, whatever value I set, the video is not full screen 
> > mode, Anything I missed?
> > 
> > Thanks
> > William
> > 
> > 
> > 
> > 
> 
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> 
> 
> --
> Ville Syrjälä
> Intel OTC

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: Help on drmModeSetPlane
  2015-04-15 14:33     ` Ville Syrjälä
@ 2015-04-17  9:30       ` Xie, William
  2015-04-17 10:07         ` Ville Syrjälä
  0 siblings, 1 reply; 12+ messages in thread
From: Xie, William @ 2015-04-17  9:30 UTC (permalink / raw)
  To: ville.syrjala; +Cc: DRI Development

Hello

Does overlay support alpha?

William

-----Original Message-----
From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com] 
Sent: Wednesday, April 15, 2015 10:34 PM
To: Xie, William
Cc: DRI Development
Subject: Re: Help on drmModeSetPlane

On Wed, Apr 15, 2015 at 02:24:14PM +0000, Xie, William wrote:
> Oh, I tried it on BDW.
> So we need to use other way to scale the video to full screen?

Yes, unfortunately.

> 
> William
> 
> 
> -----Original Message-----
> From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> Sent: Wednesday, April 15, 2015 7:23 PM
> To: Xie, William
> Cc: DRI Development
> Subject: Re: Help on drmModeSetPlane
> 
> On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> > To make it more specific,
> > 
> > For example:
> > 1: video frame size is 1280x720,
> > 2: screen resolution is 3200x1800,
> > 
> > How can I set crtc and src parameters?
> > 
> > 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> > 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> > 
> > Which one is correct?
> 
> 2 is correct.
> 
> What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV the hardware lost the plane scaling ability. It's coming back on SKL.
> 
> > 
> > William
> > 
> > From: Xie, William
> > Sent: Wednesday, April 15, 2015 3:55 PM
> > To: DRI Development; DRI Development
> > Subject: Help on drmModeSetPlane
> > 
> > Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> > 
> > int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
> >                                     uint32_t fb_id, uint32_t flags,
> >                                     int32_t crtc_x, int32_t crtc_y,
> >                                     uint32_t crtc_w, uint32_t crtc_h,
> >                                     uint32_t src_x, uint32_t src_y,
> >                                     uint32_t src_w, uint32_t src_h)
> > 
> > 
> > My problem is, whatever value I set, the video is not full screen 
> > mode, Anything I missed?
> > 
> > Thanks
> > William
> > 
> > 
> > 
> > 
> 
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> 
> 
> --
> Ville Syrjälä
> Intel OTC

--
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Help on drmModeSetPlane
  2015-04-17  9:30       ` Xie, William
@ 2015-04-17 10:07         ` Ville Syrjälä
  2015-04-27  9:37           ` Xie, William
  0 siblings, 1 reply; 12+ messages in thread
From: Ville Syrjälä @ 2015-04-17 10:07 UTC (permalink / raw)
  To: Xie, William; +Cc: DRI Development

On Fri, Apr 17, 2015 at 09:30:02AM +0000, Xie, William wrote:
> Hello
> 
> Does overlay support alpha?

Depends on the hardware once more. Also we don't have a proper API for
it at this time. You may get lucky if you tell it to use a pixel format
with alpha. But there's no guarantee what kind of blend equation you
will get.

Also we don't really have an API for the plane Z order either. Some
drivers have a property for that, but I don't think it's really well
defined.

> 
> William
> 
> -----Original Message-----
> From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com] 
> Sent: Wednesday, April 15, 2015 10:34 PM
> To: Xie, William
> Cc: DRI Development
> Subject: Re: Help on drmModeSetPlane
> 
> On Wed, Apr 15, 2015 at 02:24:14PM +0000, Xie, William wrote:
> > Oh, I tried it on BDW.
> > So we need to use other way to scale the video to full screen?
> 
> Yes, unfortunately.
> 
> > 
> > William
> > 
> > 
> > -----Original Message-----
> > From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> > Sent: Wednesday, April 15, 2015 7:23 PM
> > To: Xie, William
> > Cc: DRI Development
> > Subject: Re: Help on drmModeSetPlane
> > 
> > On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> > > To make it more specific,
> > > 
> > > For example:
> > > 1: video frame size is 1280x720,
> > > 2: screen resolution is 3200x1800,
> > > 
> > > How can I set crtc and src parameters?
> > > 
> > > 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> > > 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> > > 
> > > Which one is correct?
> > 
> > 2 is correct.
> > 
> > What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV the hardware lost the plane scaling ability. It's coming back on SKL.
> > 
> > > 
> > > William
> > > 
> > > From: Xie, William
> > > Sent: Wednesday, April 15, 2015 3:55 PM
> > > To: DRI Development; DRI Development
> > > Subject: Help on drmModeSetPlane
> > > 
> > > Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> > > 
> > > int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
> > >                                     uint32_t fb_id, uint32_t flags,
> > >                                     int32_t crtc_x, int32_t crtc_y,
> > >                                     uint32_t crtc_w, uint32_t crtc_h,
> > >                                     uint32_t src_x, uint32_t src_y,
> > >                                     uint32_t src_w, uint32_t src_h)
> > > 
> > > 
> > > My problem is, whatever value I set, the video is not full screen 
> > > mode, Anything I missed?
> > > 
> > > Thanks
> > > William
> > > 
> > > 
> > > 
> > > 
> > 
> > > _______________________________________________
> > > dri-devel mailing list
> > > dri-devel@lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> > 
> > 
> > --
> > Ville Syrjälä
> > Intel OTC
> 
> --
> Ville Syrjälä
> Intel OTC

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: Help on drmModeSetPlane
  2015-04-17 10:07         ` Ville Syrjälä
@ 2015-04-27  9:37           ` Xie, William
  2015-04-27 12:48             ` Ville Syrjälä
  0 siblings, 1 reply; 12+ messages in thread
From: Xie, William @ 2015-04-27  9:37 UTC (permalink / raw)
  To: ville.syrjala; +Cc: DRI Development

Hello, Syrjälä,
 For drmModeSetPlane API, regarding the ctrc width, height and src width and heitht,
Do they must 16 byte aligned?
For example, for the size of 33x66, will these value be supported?

William

-----Original Message-----
From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com] 
Sent: Friday, April 17, 2015 6:08 PM
To: Xie, William
Cc: DRI Development
Subject: Re: Help on drmModeSetPlane

On Fri, Apr 17, 2015 at 09:30:02AM +0000, Xie, William wrote:
> Hello
> 
> Does overlay support alpha?

Depends on the hardware once more. Also we don't have a proper API for it at this time. You may get lucky if you tell it to use a pixel format with alpha. But there's no guarantee what kind of blend equation you will get.

Also we don't really have an API for the plane Z order either. Some drivers have a property for that, but I don't think it's really well defined.

> 
> William
> 
> -----Original Message-----
> From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> Sent: Wednesday, April 15, 2015 10:34 PM
> To: Xie, William
> Cc: DRI Development
> Subject: Re: Help on drmModeSetPlane
> 
> On Wed, Apr 15, 2015 at 02:24:14PM +0000, Xie, William wrote:
> > Oh, I tried it on BDW.
> > So we need to use other way to scale the video to full screen?
> 
> Yes, unfortunately.
> 
> > 
> > William
> > 
> > 
> > -----Original Message-----
> > From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> > Sent: Wednesday, April 15, 2015 7:23 PM
> > To: Xie, William
> > Cc: DRI Development
> > Subject: Re: Help on drmModeSetPlane
> > 
> > On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> > > To make it more specific,
> > > 
> > > For example:
> > > 1: video frame size is 1280x720,
> > > 2: screen resolution is 3200x1800,
> > > 
> > > How can I set crtc and src parameters?
> > > 
> > > 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> > > 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> > > 
> > > Which one is correct?
> > 
> > 2 is correct.
> > 
> > What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV the hardware lost the plane scaling ability. It's coming back on SKL.
> > 
> > > 
> > > William
> > > 
> > > From: Xie, William
> > > Sent: Wednesday, April 15, 2015 3:55 PM
> > > To: DRI Development; DRI Development
> > > Subject: Help on drmModeSetPlane
> > > 
> > > Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> > > 
> > > int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
> > >                                     uint32_t fb_id, uint32_t flags,
> > >                                     int32_t crtc_x, int32_t crtc_y,
> > >                                     uint32_t crtc_w, uint32_t crtc_h,
> > >                                     uint32_t src_x, uint32_t src_y,
> > >                                     uint32_t src_w, uint32_t 
> > > src_h)
> > > 
> > > 
> > > My problem is, whatever value I set, the video is not full screen 
> > > mode, Anything I missed?
> > > 
> > > Thanks
> > > William
> > > 
> > > 
> > > 
> > > 
> > 
> > > _______________________________________________
> > > dri-devel mailing list
> > > dri-devel@lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> > 
> > 
> > --
> > Ville Syrjälä
> > Intel OTC
> 
> --
> Ville Syrjälä
> Intel OTC

--
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Help on drmModeSetPlane
  2015-04-27  9:37           ` Xie, William
@ 2015-04-27 12:48             ` Ville Syrjälä
  0 siblings, 0 replies; 12+ messages in thread
From: Ville Syrjälä @ 2015-04-27 12:48 UTC (permalink / raw)
  To: Xie, William; +Cc: DRI Development

On Mon, Apr 27, 2015 at 09:37:54AM +0000, Xie, William wrote:
> Hello, Syrjälä,
>  For drmModeSetPlane API, regarding the ctrc width, height and src width and heitht,
> Do they must 16 byte aligned?
> For example, for the size of 33x66, will these value be supported?

Depends on the hardware/driver implementation. In general the driver
should fudge things enough that you'll get something reasonably close to
what you requested. For Intel hardware we support pixel accurate
coordinates (well, macropixel in the case of packed YUV 4:2:2).
Sub-pixel accuracy isn't supported on current hardware.

> 
> William
> 
> -----Original Message-----
> From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com] 
> Sent: Friday, April 17, 2015 6:08 PM
> To: Xie, William
> Cc: DRI Development
> Subject: Re: Help on drmModeSetPlane
> 
> On Fri, Apr 17, 2015 at 09:30:02AM +0000, Xie, William wrote:
> > Hello
> > 
> > Does overlay support alpha?
> 
> Depends on the hardware once more. Also we don't have a proper API for it at this time. You may get lucky if you tell it to use a pixel format with alpha. But there's no guarantee what kind of blend equation you will get.
> 
> Also we don't really have an API for the plane Z order either. Some drivers have a property for that, but I don't think it's really well defined.
> 
> > 
> > William
> > 
> > -----Original Message-----
> > From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> > Sent: Wednesday, April 15, 2015 10:34 PM
> > To: Xie, William
> > Cc: DRI Development
> > Subject: Re: Help on drmModeSetPlane
> > 
> > On Wed, Apr 15, 2015 at 02:24:14PM +0000, Xie, William wrote:
> > > Oh, I tried it on BDW.
> > > So we need to use other way to scale the video to full screen?
> > 
> > Yes, unfortunately.
> > 
> > > 
> > > William
> > > 
> > > 
> > > -----Original Message-----
> > > From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> > > Sent: Wednesday, April 15, 2015 7:23 PM
> > > To: Xie, William
> > > Cc: DRI Development
> > > Subject: Re: Help on drmModeSetPlane
> > > 
> > > On Wed, Apr 15, 2015 at 08:49:39AM +0000, Xie, William wrote:
> > > > To make it more specific,
> > > > 
> > > > For example:
> > > > 1: video frame size is 1280x720,
> > > > 2: screen resolution is 3200x1800,
> > > > 
> > > > How can I set crtc and src parameters?
> > > > 
> > > > 1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
> > > > 2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)
> > > > 
> > > > Which one is correct?
> > > 
> > > 2 is correct.
> > > 
> > > What hardware are you trying this on? Do note that on HSW/BDW/VLV/CHV the hardware lost the plane scaling ability. It's coming back on SKL.
> > > 
> > > > 
> > > > William
> > > > 
> > > > From: Xie, William
> > > > Sent: Wednesday, April 15, 2015 3:55 PM
> > > > To: DRI Development; DRI Development
> > > > Subject: Help on drmModeSetPlane
> > > > 
> > > > Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
> > > > 
> > > > int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
> > > >                                     uint32_t fb_id, uint32_t flags,
> > > >                                     int32_t crtc_x, int32_t crtc_y,
> > > >                                     uint32_t crtc_w, uint32_t crtc_h,
> > > >                                     uint32_t src_x, uint32_t src_y,
> > > >                                     uint32_t src_w, uint32_t 
> > > > src_h)
> > > > 
> > > > 
> > > > My problem is, whatever value I set, the video is not full screen 
> > > > mode, Anything I missed?
> > > > 
> > > > Thanks
> > > > William
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > > > _______________________________________________
> > > > dri-devel mailing list
> > > > dri-devel@lists.freedesktop.org
> > > > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> > > 
> > > 
> > > --
> > > Ville Syrjälä
> > > Intel OTC
> > 
> > --
> > Ville Syrjälä
> > Intel OTC
> 
> --
> Ville Syrjälä
> Intel OTC

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Help on drmModeSetPlane
  2015-06-04  4:59 ` Xie, William
@ 2015-06-05 17:19   ` Matt Roper
  0 siblings, 0 replies; 12+ messages in thread
From: Matt Roper @ 2015-06-05 17:19 UTC (permalink / raw)
  To: Xie, William; +Cc: DRI Development

On Thu, Jun 04, 2015 at 04:59:41AM +0000, Xie, William wrote:
> Hi
> Does anyone know what the result value of "-34" means returned by drmModeSetPlane?
> 
> William

-34 is -ERANGE which generally gets raised if you request scaling that
your hardware (or driver) can't support.  Not all platforms are capable
of performing scaling and those that do support it generally have
limits.

You can also get an -ERANGE return if your coordinates could cause an
integer overflow (e.g., coordinates with values near INT_MAX).
 

Matt

-- 
Matt Roper
Graphics Software Engineer
IoTG Platform Enabling & Development
Intel Corporation
(916) 356-2795
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Help on drmModeSetPlane
  2015-04-15  8:52 Xie, William
@ 2015-06-04  4:59 ` Xie, William
  2015-06-05 17:19   ` Matt Roper
  0 siblings, 1 reply; 12+ messages in thread
From: Xie, William @ 2015-06-04  4:59 UTC (permalink / raw)
  Cc: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 99 bytes --]

Hi
Does anyone know what the result value of "-34" means returned by drmModeSetPlane?

William

[-- Attachment #1.2: Type: text/html, Size: 2967 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: Help on drmModeSetPlane
@ 2015-04-15  8:52 Xie, William
  2015-06-04  4:59 ` Xie, William
  0 siblings, 1 reply; 12+ messages in thread
From: Xie, William @ 2015-04-15  8:52 UTC (permalink / raw)
  To: DRI Development


[-- Attachment #1.1: Type: text/plain, Size: 1376 bytes --]

I tried crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
but get a crash,

How can I enable scaling on overlay for video frame?

William
From: Xie, William
Sent: Wednesday, April 15, 2015 4:49 PM
To: DRI Development; DRI Development
Subject: RE: Help on drmModeSetPlane

To make it more specific,

For example:
1: video frame size is 1280x720,
2: screen resolution is 3200x1800,

How can I set crtc and src parameters?

1: crtc (0, 0, 3200, 1800)  src (0, 0, 3200<<16, 1800<<16)
2: crtc (0, 0, 3200, 1800)  src (0, 0, 1280<<16, 720<<16)

Which one is correct?

William

From: Xie, William
Sent: Wednesday, April 15, 2015 3:55 PM
To: DRI Development; DRI Development
Subject: Help on drmModeSetPlane

Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?

int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
                                    uint32_t fb_id, uint32_t flags,
                                    int32_t crtc_x, int32_t crtc_y,
                                    uint32_t crtc_w, uint32_t crtc_h,
                                    uint32_t src_x, uint32_t src_y,
                                    uint32_t src_w, uint32_t src_h)


My problem is, whatever value I set, the video is not full screen mode,
Anything I missed?

Thanks
William





[-- Attachment #1.2: Type: text/html, Size: 8037 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Help on drmModeSetPlane
@ 2015-04-15  7:56 Xie, William
  0 siblings, 0 replies; 12+ messages in thread
From: Xie, William @ 2015-04-15  7:56 UTC (permalink / raw)
  To: DRI Development


[-- Attachment #1.1: Type: text/plain, Size: 638 bytes --]

Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?

int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
                                    uint32_t fb_id, uint32_t flags,
                                    int32_t crtc_x, int32_t crtc_y,
                                    uint32_t crtc_w, uint32_t crtc_h,
                                    uint32_t src_x, uint32_t src_y,
                                    uint32_t src_w, uint32_t src_h)


My problem is, whatever value I set, the video is not full screen mode,
Anything I missed?

Thanks
William





[-- Attachment #1.2: Type: text/html, Size: 4185 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-06-05 17:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15  8:49 Help on drmModeSetPlane Xie, William
2015-04-15 11:22 ` Ville Syrjälä
2015-04-15 14:24   ` Xie, William
2015-04-15 14:33     ` Ville Syrjälä
2015-04-17  9:30       ` Xie, William
2015-04-17 10:07         ` Ville Syrjälä
2015-04-27  9:37           ` Xie, William
2015-04-27 12:48             ` Ville Syrjälä
  -- strict thread matches above, loose matches on Subject: below --
2015-04-15  8:52 Xie, William
2015-06-04  4:59 ` Xie, William
2015-06-05 17:19   ` Matt Roper
2015-04-15  7:56 Xie, William

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.