About Nvidia cards and wined3d_private.h

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Arcantis
Newbie
Newbie
Posts: 4
Joined: Fri Jul 12, 2013 1:22 pm

About Nvidia cards and wined3d_private.h

Post by Arcantis »

Hello,
I'm new to the forum, nice to meet you.

I made a search for similar result but I was flooded with many old post but I didn't find anything related but pardon me if a similar question has been posted, I didn't find it.

I have a laptop with an Nvidia 675MX, but wine see this card as a Nvidia 8800m. Looking around I found the header wined3d_private who define every ('?) Nvidia card.

The question is: why? Can it affect any performance?

I thought it was related to the registry key HKCU/Software/Wine/Direct3D/VideoPciDeviceID so I tried to add it and test various values got form that header. My idea is to match a card similar to mine but every value set in this key leads to a crash when launching DirectX application (surprisingly not immediately, they crash when trying to create a surface).
How does this values works?

I'm a developer but wine is too large to understand. I hope you find the time for me to explain this behaviour.

Thank you for your time.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: About Nvidia cards and wined3d_private.h

Post by dimesio »

Arcantis wrote: I have a laptop with an Nvidia 675MX, but wine see this card as a Nvidia 8800m.
File a bug.
Arcantis
Newbie
Newbie
Posts: 4
Joined: Fri Jul 12, 2013 1:22 pm

Re: About Nvidia cards and wined3d_private.h

Post by Arcantis »

Should I?

I was asking for the purpose to understand if Wine see the cards through that header (I understand that is just a small piece of something bigger). Because if it's so then my card is simply not supported yet.

I suspect this for the explicit commit messages of this file which usually is "Added support for Nvidia XXX".
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: About Nvidia cards and wined3d_private.h

Post by dimesio »

Arcantis
Newbie
Newbie
Posts: 4
Joined: Fri Jul 12, 2013 1:22 pm

Re: About Nvidia cards and wined3d_private.h

Post by Arcantis »

Yes, Dimesio, eventually I will hack and propose a patch. I would really like help the project.

But before trying any attempt I write this post to understand that header and have a little guideline how to proceed. I am a C++ developer but as I wrote Wine is BIG and I have no experience on hacking wine.

Should I use another channel instead and maybe ask to a developer directly?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: About Nvidia cards and wined3d_private.h

Post by dimesio »

From looking at previous commits that add recognition of specific cards, it seems to simply involve adding the necessary info to wined3d_private.h and directx.c. http://source.winehq.org/git/wine.git/c ... 6c23a1192d is one example.

I'm not a developer, so that's about all I can tell you. There is a developer's mailing list, [email protected].
Arcantis
Newbie
Newbie
Posts: 4
Joined: Fri Jul 12, 2013 1:22 pm

Re: About Nvidia cards and wined3d_private.h

Post by Arcantis »

Yes, I thought that too but I wanted confirmation.
Well, I'll try!

Thank you for your replies. I'll try and eventually join the mailing list.
Locked