Video Card Question: Window Layer Hardware Acceleration?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
windows8
Member
Member
Posts: 33
Joined: Sat Feb 23, 2013 3:52 am

Video Card Question: Window Layer Hardware Acceleration?

Post by windows8 »

These days I am reading nouveau source code,I have found many functions such as mode setting,filling rect and copying area.

However,I cannot find any functions about the window layer. I have searched google,found Linux DRM guide and tried to learn connectors,encoders,CRTCs. But I still can not find any things about window layer hardware acceleration.

Does this acceleration exist? Or it belongs to software? Thank you for your help.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Video Card Question: Window Layer Hardware Acceleration?

Post by Brendan »

Hi,
windows8 wrote:These days I am reading nouveau source code,I have found many functions such as mode setting,filling rect and copying area.

However,I cannot find any functions about the window layer. I have searched google,found Linux DRM guide and tried to learn connectors,encoders,CRTCs. But I still can not find any things about window layer hardware acceleration.

Does this acceleration exist? Or it belongs to software? Thank you for your help.
I think I need some clarification here...

You found code to do (e.g.) hardware accelerated copying of an area, that would be used by whichever process in user space happens to implement the window layer (e.g. X11); but can't find code to do (e.g.) hardware accelerated copying of an area (that would be used by whichever process in user space happens to implement the window layer)?


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
windows8
Member
Member
Posts: 33
Joined: Sat Feb 23, 2013 3:52 am

Re: Video Card Question: Window Layer Hardware Acceleration?

Post by windows8 »

Brendan wrote:Hi,

I think I need some clarification here...

You found code to do (e.g.) hardware accelerated copying of an area, that would be used by whichever process in user space happens to implement the window layer (e.g. X11); but can't find code to do (e.g.) hardware accelerated copying of an area (that would be used by whichever process in user space happens to implement the window layer)?


Cheers,

Brendan
Oh.... I just want to ask,if the " entirely hardware " window layer acceleration exists...
Maybe the answer is no? Thanks....
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Video Card Question: Window Layer Hardware Acceleration?

Post by Brendan »

Hi,
windows8 wrote:Oh.... I just want to ask,if the " entirely hardware " window layer acceleration exists...
Maybe the answer is no? Thanks....
The answer is "no".

Possibly more importantly, the answer is "No, it doesn't exist and shouldn't exist". As far as hardware is concerned there's lower level things (e.g. textures). Device drivers just provide a "standard for the OS" abstraction that can be used to by other software (e.g. the window manager) to access these lower level things. The window manager provides higher level things (e.g. windows, desktops, etc) and uses the "standard for the OS" abstractions provided many different types of the drivers (video, sound, keyboard, mouse, etc) to do that.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
windows8
Member
Member
Posts: 33
Joined: Sat Feb 23, 2013 3:52 am

Re: Video Card Question: Window Layer Hardware Acceleration?

Post by windows8 »

Brendan wrote:Hi,

The answer is "no".

Possibly more importantly, the answer is "No, it doesn't exist and shouldn't exist". As far as hardware is concerned there's lower level things (e.g. textures). Device drivers just provide a "standard for the OS" abstraction that can be used to by other software (e.g. the window manager) to access these lower level things. The window manager provides higher level things (e.g. windows, desktops, etc) and uses the "standard for the OS" abstractions provided many different types of the drivers (video, sound, keyboard, mouse, etc) to do that.


Cheers,

Brendan
OK,I see. Thanks a lot!
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Video Card Question: Window Layer Hardware Acceleration?

Post by Combuster »

Brendan wrote:Hi,
windows8 wrote:Oh.... I just want to ask,if the " entirely hardware " window layer acceleration exists...
Maybe the answer is no? Thanks....
The answer is "no".
For a very limited amount of windows (1 or 2), any current hardware will do. "Video overlays" implement exactly those features. There is no generic driver, however.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply