Kodi Community Forum
WIP Windows DirectX 11 upgrade test thread - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
--- Thread: WIP Windows DirectX 11 upgrade test thread (/showthread.php?tid=218274)



RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-27

(2015-02-27, 19:23)Martijn Wrote: If you can tell how, sure. Finding out seems a real bitch.
Run dxdiag. Then look at Driver Model in section Drivers at Display tab. I'm wrong and video rendering/decoding with DX11 requires WDDM1.1 drivers.

(2015-02-27, 19:27)Martijn Wrote: The win7 computer with NIVIA GTX275 using the \ key for switching fullscreen mode switches my screen to a lower res.
http://pastebin.com/jTJcicqk

CWinSystemWin32::SetFullScreen (windowed) on screen 0 with size 635x374, refresh 0.000000

Using new build from this morning
Hm. From the log file I can see what you switched from true full-screen ([email protected]) to windowed mode with windows size 635x374. Firstly, DXGI switches to windowed mode
Code:
18:26:23 T:3652   DEBUG: CApplication::OnKey: backslash (0xf05c) pressed, action is ToggleFullScreen
18:26:23 T:3652   DEBUG: CRenderSystemDX::SetFullScreenInternal - Switching swap chain to windowed mode.
DXGI should restore native screen resolution (this is internal DXGI behavior). Then window is resized to requiested size
Code:
18:26:24 T:3652   DEBUG: CWinSystemWin32::ResizeInternal - resizing due to size change (0,0,1280,1024 fullscreen)->(366,191,1017,603)
Then resizes backbuffer to 635x374.
Code:
18:26:24 T:3652   DEBUG: CRenderSystemDX::CreateWindowSizeDependentResources - (Re)Create window size (635x374) dependent resources.
I've checked this part a few times and all works fine for me.


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-27

(2015-02-27, 20:10)Martijn Wrote: it's WDDM 1.1 (Seems like that's almost standaard for Win7).
Hm.. It needs to investigation why on your GTX275 video device is not available.


RE: Windows DirectX 11 upgrade test thread - Martijn - 2015-02-27

Some screenshots for clarification

Normal windowed:
https://dl.dropboxusercontent.com/u/7435592/IMG_20150227_192120.jpg

Put in fullscreen:
https://www.dropbox.com/s/4tn1a2onkdud22i/IMG_20150227_192131.jpg
Detailed picture. See the horrible resolution:
https://www.dropbox.com/s/2vzpyhppwovgzh7/IMG_20150227_194241.jpg

Taking screenshot from within Kodi at same time looks normal:
https://dl.dropboxusercontent.com/u/7435592/screenshot019.png

Looking at my desktop resolution, this is set to 640x480


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-27

@Martijn
Please try to change resolution (while Kodi in fullscreen) in the settings to any other resolution, then choose No in the popup dialog.

Edit:
I was able to reproduce issue.


RE: Windows DirectX 11 upgrade test thread - Martijn - 2015-02-27

(2015-02-27, 21:13)afedchin Wrote: @Martijn
Please try to change resolution (while Kodi in fullscreen) in the settings to any other resolution, then choose No in the popup dialog.

yes that works. However switching fullscreen again brings back the issue.
When starting from fullscreen it's also fine. The problem arises when switching towards fullscreen


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-27

@Martijn
Please, try the latest build at the mirror.


RE: Windows DirectX 11 upgrade test thread - poplap - 2015-02-28

Tested the latest build and everything is still working.

Log: http://pastebin.com/Zbv4GXHs


RE: Windows DirectX 11 upgrade test thread - Martijn - 2015-02-28

Switching fullscreen is working fine again with the GTX275
Did some switching and resizing with video playing. Here's the log in case you wanted it.
http://xbmclogs.com/pdoskf7mi

Here's the one for the other PC. Just for information.
http://xbmclogs.com/pkm2koupw


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-28

New build:

Fixed:
  • Fixed creation swap chain on some systems.
  • Changed TTF font texture processing.
  • Fixed resoulution changing when switching to fullscreen.

Download link in the first post.

@Martijn
Thanks for feedback. Still need to determine why your GTX275 doesn't create video device for dxva processing/decoding.


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-28

@Martijn
Do you have installed Platform Update for Windows 7?


RE: Windows DirectX 11 upgrade test thread - Martijn - 2015-02-28

I think i installed it now.
http://pastebin.com/Ru4kTN3Z

It's an optional package in Windows update so don't count on users having it installed without explicitly telling them to do.


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-02-28

Yea, now dxva processing/decoding works on your system.

Need to add Platform Update for Windows 7 in system requirements, and Update for Windows Vista (KB971512) also. I'll update OP


RE: Windows DirectX 11 upgrade test thread - Martijn - 2015-02-28

well it's not that user friendly imo to have common users find this out. Need to find a way to trigger user to get that installed. Also the linked page you gave contains dead links so it wasn't that helpful either.

Perhaps as installer option to show dialog that they need to check for optional packages.


RE: Windows DirectX 11 upgrade test thread - afedchin - 2015-03-02

@Martijn
I agree it is not user frendly. I think what installer should check for installed hotfix (it is possible with powershell command) and if not then will show message box and/or open an url to download hotfix. Or installer may download hotfix from MS site and run installation. What do you think?

I've checked several time the linked page and it works. downloading works also.


RE: Windows DirectX 11 upgrade test thread - Martijn - 2015-03-02

Let's think about it for later