mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
d3d12: Only check D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO for D3D_FEATURE_LEVEL_1_0_GENERIC
Fixes: 55e377e965 ("d3d12: Add partial media, compute, graphics support with CORE and GENERIC feature levels")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28074>
This commit is contained in:
parent
1b6d7ab80b
commit
830561c575
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ init_texture(struct d3d12_screen *screen,
|
|||
HRESULT hres = E_FAIL;
|
||||
enum d3d12_residency_status init_residency;
|
||||
|
||||
if (heap) {
|
||||
if (heap && screen->max_feature_level == D3D_FEATURE_LEVEL_1_0_GENERIC) {
|
||||
D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO capData;
|
||||
capData.Dimension = desc.Dimension;
|
||||
capData.Format = desc.Format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue