diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2017-11-19 21:49:27 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2017-11-19 21:49:27 +1100 |
commit | 4569f39da5a82f83b331dec9253a4dc5b2aec426 (patch) | |
tree | 198664fe3c4784480497c5dc958ba63769179c73 /video/out/d3d11/ra_d3d11.c | |
parent | b9c742df1063d524fbd7dd80c428d50ca5b691a6 (diff) | |
download | mpv-4569f39da5a82f83b331dec9253a4dc5b2aec426.tar.bz2 mpv-4569f39da5a82f83b331dec9253a4dc5b2aec426.tar.xz |
vo_gpu: d3d11: don't use runtime version for UAV slot count
FL 11_1 is only supported with the Direct3D 11.1 runtime anyway, so
there is no need to check both the runtime version and the feature
level.
Diffstat (limited to 'video/out/d3d11/ra_d3d11.c')
-rw-r--r-- | video/out/d3d11/ra_d3d11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/d3d11/ra_d3d11.c b/video/out/d3d11/ra_d3d11.c index 30cd75d199..a260b3b3d0 100644 --- a/video/out/d3d11/ra_d3d11.c +++ b/video/out/d3d11/ra_d3d11.c @@ -2290,7 +2290,7 @@ struct ra *ra_d3d11_create(ID3D11Device *dev, struct mp_log *log, ra->max_shmem = 32 * 1024; } - if (p->fl >= D3D_FEATURE_LEVEL_11_1 && minor >= 1) { + if (p->fl >= D3D_FEATURE_LEVEL_11_1) { p->max_uavs = D3D11_1_UAV_SLOT_COUNT; } else { p->max_uavs = D3D11_PS_CS_UAV_REGISTER_COUNT; |