Go back to using COMMON as fallback state

RENDER_TARGET requires a bit to be set, but COMMON doesn't
(this also matches hardcoded before states elsewhere)

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2349>
This commit is contained in:
Charlton Rodda 2024-11-06 23:25:41 +00:00
parent 7a4ba078d9
commit ce3a05851d

View file

@ -97,7 +97,7 @@ d3d_convert_usage_bits_to_d3d12_app_resource_state(enum xrt_swapchain_usage_bits
state = D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE;
} else {
//! @todo unspecified fallback
state = D3D12_RESOURCE_STATE_RENDER_TARGET;
state = D3D12_RESOURCE_STATE_COMMON;
}
}