summaryrefslogtreecommitdiffstats
path: root/libhb/enc_qsv.c
diff options
context:
space:
mode:
authoragalin89 <[email protected]>2020-10-05 19:06:18 +0100
committerScott <[email protected]>2020-10-10 21:46:52 +0100
commit1883642eb32a2808924c2ef5db06f105657413f6 (patch)
tree94e990c6d89fcb92d97da8daeba0c266999c5269 /libhb/enc_qsv.c
parent68706ad72194801e0c94cd53f19f14fd1d740b05 (diff)
qsv: multi adapters improvements
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r--libhb/enc_qsv.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c
index 3f5471d3c..fed7bb394 100644
--- a/libhb/enc_qsv.c
+++ b/libhb/enc_qsv.c
@@ -1104,19 +1104,16 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job)
}
hb_dict_free(&options_list);
}
-
+#if !defined(SYS_LINUX) && !defined(SYS_FREEBSD)
if (pv->is_sys_mem)
{
- // select the right hardware implementation based on dx index
+ // select the right hardware implementation based on dx index
if (!job->qsv.ctx->qsv_device)
hb_qsv_param_parse_dx_index(pv->job, -1);
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD)
- mfxIMPL hw_preference = MFX_IMPL_VIA_ANY;
-#else
- mfxIMPL hw_preference = MFX_IMPL_VIA_D3D11;
-#endif
+ mfxIMPL hw_preference = MFX_IMPL_VIA_D3D11;
pv->qsv_info->implementation = hb_qsv_dx_index_to_impl(job->qsv.ctx->dx_index) | hw_preference;
}
+#endif
// reload colorimetry in case values were set in encoder_options
if (pv->param.videoSignalInfo.ColourDescriptionPresent)
{