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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user