dxva2: use a single macro to test if the DXVA context is valid