mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
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.
This commit is contained in:
parent
b9c742df10
commit
4569f39da5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user