zink: use symbolic values instead of 0

Just make it easier to remember which parameter is accepting which type.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27682>
This commit is contained in:
Corentin Noël
2024-02-19 14:47:44 +01:00
committed by Marge Bot
parent 3b90c46bdf
commit 7cafe65ea1
+5 -4
View File
@@ -178,8 +178,8 @@ zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
zink_fence_reference(screen, mfence, NULL);
util_dynarray_clear(&bs->fences);
bs->unordered_write_access = 0;
bs->unordered_write_stages = 0;
bs->unordered_write_access = VK_ACCESS_NONE;
bs->unordered_write_stages = VK_PIPELINE_STAGE_NONE;
/* only increment batch generation if previously in-use to avoid false detection of batch completion */
if (bs->fence.submitted)
@@ -714,9 +714,10 @@ submit_queue(void *data, void *gdata, int thread_index)
mb.sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER;
mb.pNext = NULL;
mb.srcAccessMask = bs->unordered_write_access;
mb.dstAccessMask = 0;
mb.dstAccessMask = VK_ACCESS_NONE;
VKSCR(CmdPipelineBarrier)(bs->reordered_cmdbuf,
bs->unordered_write_stages, 0,
bs->unordered_write_stages,
VK_PIPELINE_STAGE_NONE,
0, 1, &mb, 0, NULL, 0, NULL);
}
VRAM_ALLOC_LOOP(result,