mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 19:08:03 +03:00
hasvk: Make a batch decoder for each queue family
The decoder context needs to know what engine it's associated with. Nowadays, we have render, compute, blitter, even video engines being used from the same driver. Rather than trying to have a single decoder and thwacking the engine field back and forth between calls, we make one per queue family, and stash a pointer in anv_queue for easy access. (Ported from anv: 79caf8a44b682f731c0fd3b941f38cc1869efe2d) [dancingmirrors: Adapted for elk.]
This commit is contained in:
1 parent
2766ca3284
commit
203bf6b58d
4 files changed
+33
-17
No files matched your search
@@ -59,6 +59,8 @@ anv_queue_init(struct anv_device *device, struct anv_queue *queue,
|
||||
queue->family = &pdevice->queue.families[queue->vk.queue_family_index];
|
||||
queue->exec_flags = exec_flags;
|
||||
|
||||
queue->decoder = &device->decoder[queue->vk.queue_family_index];
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user