mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
dzn: No need to add another bind flag for clears if one is already present
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400>
This commit is contained in:
parent
c59141d3c2
commit
8b79e6fb5e
1 changed files with 3 additions and 1 deletions
|
|
@ -240,7 +240,9 @@ dzn_image_create(struct dzn_device *device,
|
||||||
* destination. Both operations require the RT or DS cap flags.
|
* destination. Both operations require the RT or DS cap flags.
|
||||||
*/
|
*/
|
||||||
if ((image->vk.usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) &&
|
if ((image->vk.usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) &&
|
||||||
image->vk.tiling == VK_IMAGE_TILING_OPTIMAL) {
|
image->vk.tiling == VK_IMAGE_TILING_OPTIMAL &&
|
||||||
|
(image->desc.Flags & (D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET |
|
||||||
|
D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL)) == D3D12_RESOURCE_FLAG_NONE) {
|
||||||
|
|
||||||
D3D12_FEATURE_DATA_FORMAT_SUPPORT dfmt_info =
|
D3D12_FEATURE_DATA_FORMAT_SUPPORT dfmt_info =
|
||||||
dzn_physical_device_get_format_support(pdev, pCreateInfo->format);
|
dzn_physical_device_get_format_support(pdev, pCreateInfo->format);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue