Current version

v1.10.4 (stable)

Navigation

Main page
Archived news
Downloads
Documentation
   Capture
   Compiling
   Processing
   Crashes
Features
Filters
Plugin SDK
Knowledge base
Donate
Contact info
Forum
 
Other projects
   Altirra

Search

Archives

01 Dec - 31 Dec 2013
01 Oct - 31 Oct 2013
01 Aug - 31 Aug 2013
01 May - 31 May 2013
01 Mar - 31 Mar 2013
01 Feb - 29 Feb 2013
01 Dec - 31 Dec 2012
01 Nov - 30 Nov 2012
01 Oct - 31 Oct 2012
01 Sep - 30 Sep 2012
01 Aug - 31 Aug 2012
01 June - 30 June 2012
01 May - 31 May 2012
01 Apr - 30 Apr 2012
01 Dec - 31 Dec 2011
01 Nov - 30 Nov 2011
01 Oct - 31 Oct 2011
01 Sep - 30 Sep 2011
01 Aug - 31 Aug 2011
01 Jul - 31 Jul 2011
01 June - 30 June 2011
01 May - 31 May 2011
01 Apr - 30 Apr 2011
01 Mar - 31 Mar 2011
01 Feb - 29 Feb 2011
01 Jan - 31 Jan 2011
01 Dec - 31 Dec 2010
01 Nov - 30 Nov 2010
01 Oct - 31 Oct 2010
01 Sep - 30 Sep 2010
01 Aug - 31 Aug 2010
01 Jul - 31 Jul 2010
01 June - 30 June 2010
01 May - 31 May 2010
01 Apr - 30 Apr 2010
01 Mar - 31 Mar 2010
01 Feb - 29 Feb 2010
01 Jan - 31 Jan 2010
01 Dec - 31 Dec 2009
01 Nov - 30 Nov 2009
01 Oct - 31 Oct 2009
01 Sep - 30 Sep 2009
01 Aug - 31 Aug 2009
01 Jul - 31 Jul 2009
01 June - 30 June 2009
01 May - 31 May 2009
01 Apr - 30 Apr 2009
01 Mar - 31 Mar 2009
01 Feb - 29 Feb 2009
01 Jan - 31 Jan 2009
01 Dec - 31 Dec 2008
01 Nov - 30 Nov 2008
01 Oct - 31 Oct 2008
01 Sep - 30 Sep 2008
01 Aug - 31 Aug 2008
01 Jul - 31 Jul 2008
01 June - 30 June 2008
01 May - 31 May 2008
01 Apr - 30 Apr 2008
01 Mar - 31 Mar 2008
01 Feb - 29 Feb 2008
01 Jan - 31 Jan 2008
01 Dec - 31 Dec 2007
01 Nov - 30 Nov 2007
01 Oct - 31 Oct 2007
01 Sep - 30 Sep 2007
01 Aug - 31 Aug 2007
01 Jul - 31 Jul 2007
01 June - 30 June 2007
01 May - 31 May 2007
01 Apr - 30 Apr 2007
01 Mar - 31 Mar 2007
01 Feb - 29 Feb 2007
01 Jan - 31 Jan 2007
01 Dec - 31 Dec 2006
01 Nov - 30 Nov 2006
01 Oct - 31 Oct 2006
01 Sep - 30 Sep 2006
01 Aug - 31 Aug 2006
01 Jul - 31 Jul 2006
01 June - 30 June 2006
01 May - 31 May 2006
01 Apr - 30 Apr 2006
01 Mar - 31 Mar 2006
01 Feb - 29 Feb 2006
01 Jan - 31 Jan 2006
01 Dec - 31 Dec 2005
01 Nov - 30 Nov 2005
01 Oct - 31 Oct 2005
01 Sep - 30 Sep 2005
01 Aug - 31 Aug 2005
01 Jul - 31 Jul 2005
01 June - 30 June 2005
01 May - 31 May 2005
01 Apr - 30 Apr 2005
01 Mar - 31 Mar 2005
01 Feb - 29 Feb 2005
01 Jan - 31 Jan 2005
01 Dec - 31 Dec 2004
01 Nov - 30 Nov 2004
01 Oct - 31 Oct 2004
01 Sep - 30 Sep 2004
01 Aug - 31 Aug 2004

Stuff

Powered by Pivot  
XML: RSS feed 
XML: Atom feed 

§ Interesting DirectX changes in Windows 8 Developer Preview

I've managed to install the Windows 8 Developer Preview into a VirtualBox session, after spending a few hours in frustration trying to find a way around not having a dual layer DVD-R handy, and all of the suggested workarounds either requiring a large USB flash drive or not working on a UEFI boot machine. I'll just start by saying, yeah, Metro gets in the way so far. I'll leave it at that since it's clearly unfinished and I'd like to talk about other things.

Specifically, DirectX changes.

I've only had a couple of hours to dig into it, and so far, VirtualDub and Altirra run fine. So far, so good, nothing catastrophic like the display panes totally breaking *cough*Vista*cough*. One issue I have found is that the display code refuses to switch into DirectDraw mode. Not a big deal, since DirectDraw is basically neutered under WDDM anyway. (Amusingly, over time many of the DirectX APIs seem to be faring worse than their base Win32 counterparts.) The reason is a bit strange, though: in Windows 7, DirectDrawEnumerateEx() returns an entries for the primary monitor with both NULL and non-NULL monitor handles, whereas in Windows 8 DP the callback is only getting called once with a NULL HMONITOR. This is causing the current tip display code to fail to find a matching monitor. Easily worked around, but strange nevertheless.

The other issue is more interesting, and has to do with this debug trace:

VideoDisplay/DX9: 3D device is lame -- reason: raster caps check failed

My first thought was, OK, I'm running this in VirtualBox without proper video drivers. Of course the 3D device caps check is going to fail. Wait... what 3D device?

The answer is awesome: the software WARP device has become a full-fledged display driver. In DXCapsViewer, it shows up as "Microsoft Basic Display Driver" with d3d10warp.dll as the driver name. If you don't otherwise have a 3D hardware display driver, the WARP driver emulates one -- which explains why you can now get animated tilty window effects even on a frame buffer. Also, unlike in Windows 7, it is exposed to Direct3D9 apps as well. This is cool, because it means we're finally getting to the point where you can write 3D code that isn't too performance critical and rely on a reasonably performing software fallback to be available.

Well... almost. DXCapsViewer reveals a couple of omissions or bugs in the DX9 support compared to traditional 3D hardware. First, the reason VirtualDub doesn't work with it is that I made the mistake of actually checking caps bits, and for some reason WARP doesn't support dithering (D3DPRASTERCAPS_DITHER). Interestingly, the software renderer (!D3DDEVCAPS_HWRASTERIZATION) check passed. Okay, fine, hack out the dither check and it actually works. The second is that it's missing a couple of texture formats. X4R4G4B4 isn't a big loss, but not having A8L8 is a bigger problem. It's a useful format for two-channel purposes like normal map encoding, and VirtualDub uses it to upload chroma for displaying NV12 format video. This means that if you try running something heavier like a 3D graphics tool or a game, it'll probably work, but you might see some objects turn black and some other miscellaneous problems.

Comments

Comments posted:


Predicting problems that the current featureset of the WARP driver has in games before it is even openly out. I am still impressed with your skills =)

Draget - 14 09 11 - 23:28


Also, Win8 support Direct3D 11 Video Decoding in Media Foundation
http://msdn.microsoft.com/en-us/library/..

Dragon - 15 09 11 - 00:11


Wow..you actually went in yourself and tested the software beforehand on a new OS, discovering bugs...Thank you a lot!

You are the best person in the whole wide world :)

Diki - 15 09 11 - 00:17


Yea, they ditched support for the XPDM driver model completely in Windows 8.

Yuhong Bao (link) - 16 09 11 - 03:50

Comment form


Please keep comments on-topic for this entry. If you have unrelated comments about VirtualDub, the forum is a better place to post them.
Name:  
Remember personal info?

Email (Optional):
Your email address is only revealed to the blog owner and is not shown to the public.
URL (Optional):
Comment: /

An authentication dialog may appear when you click Post Comment. Simply type in "post" as the user and "now" as the password. I have had to do this to stop automated comment spam.



Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.