mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 14:50:24 +01:00
d3d12: Don't promote to read-write states
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39077>
This commit is contained in:
parent
bbd16fdf05
commit
43ed15a61b
1 changed files with 2 additions and 1 deletions
|
|
@ -168,7 +168,8 @@ resource_state_if_promoted(D3D12_RESOURCE_STATES desired_state,
|
|||
|
||||
// If the current state is a read state resulting from previous promotion...
|
||||
if (current_state->is_promoted &&
|
||||
(current_state->state & D3D12_RESOURCE_STATE_GENERIC_READ) != D3D12_RESOURCE_STATE_COMMON)
|
||||
(current_state->state & D3D12_RESOURCE_STATE_GENERIC_READ) != D3D12_RESOURCE_STATE_COMMON &&
|
||||
!d3d12_is_write_state(desired_state))
|
||||
// ...then (accumulated) promotion is allowed
|
||||
return desired_state | current_state->state;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue