hwcontext_dxva2: fix handling of the mapping flags