mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
zink: delete some old DGC remnants
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33326>
This commit is contained in:
parent
41296aab47
commit
c41b29f450
1 changed files with 2 additions and 9 deletions
|
|
@ -1201,15 +1201,8 @@ create_buffer(struct zink_screen *screen, struct zink_resource_object *obj,
|
|||
}
|
||||
}
|
||||
|
||||
if (modifiers_count) {
|
||||
assert(modifiers_count == 3);
|
||||
/* this is the DGC path because there's no other way to pass mem bits and I don't wanna copy/paste everything around */
|
||||
reqs.size = modifiers[0];
|
||||
reqs.alignment = modifiers[1];
|
||||
reqs.memoryTypeBits = modifiers[2];
|
||||
} else {
|
||||
VKSCR(GetBufferMemoryRequirements)(screen->dev, obj->buffer, &reqs);
|
||||
}
|
||||
assert(!modifiers_count);
|
||||
VKSCR(GetBufferMemoryRequirements)(screen->dev, obj->buffer, &reqs);
|
||||
|
||||
if (templ->usage == PIPE_USAGE_STAGING)
|
||||
alloc_info->flags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue