mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 19:10:21 +01:00
zink: disable batched unordered barries with ZINK_DEBUG=noreorder
another improvement for debugging
Fixes: bf0af0f8ed ("zink: move all barrier-related functions to c++")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22907>
This commit is contained in:
parent
4b7245284d
commit
9b4b0911ee
1 changed files with 2 additions and 0 deletions
|
|
@ -552,6 +552,8 @@ zink_resource_buffer_barrier(struct zink_context *ctx, struct zink_resource *res
|
|||
* - there is no current-batch unordered access
|
||||
*/
|
||||
bool can_skip_ordered = unordered ? false : (!res->obj->access && !unordered_usage_matches);
|
||||
if (zink_debug & ZINK_DEBUG_NOREORDER)
|
||||
can_skip_unordered = can_skip_ordered = false;
|
||||
|
||||
if (!can_skip_unordered && !can_skip_ordered) {
|
||||
VkCommandBuffer cmdbuf = is_write ? zink_get_cmdbuf(ctx, NULL, res) : zink_get_cmdbuf(ctx, res, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue