mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
asahi: gut macOS related code
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
5e8168f1b7
commit
2d913892b2
1 changed files with 0 additions and 20 deletions
|
|
@ -1338,26 +1338,6 @@ agx_flush_batch(struct agx_context *ctx, struct agx_batch *batch)
|
|||
batch->occlusion_buffer.gpu = 0;
|
||||
}
|
||||
|
||||
unsigned handle_count = agx_batch_num_bo(batch) +
|
||||
agx_pool_num_bos(&batch->pool) +
|
||||
agx_pool_num_bos(&batch->pipeline_pool);
|
||||
|
||||
uint32_t *handles = calloc(sizeof(uint32_t), handle_count);
|
||||
unsigned handle = 0, handle_i = 0;
|
||||
|
||||
AGX_BATCH_FOREACH_BO_HANDLE(batch, handle) {
|
||||
handles[handle_i++] = handle;
|
||||
}
|
||||
|
||||
agx_pool_get_bo_handles(&batch->pool, handles + handle_i);
|
||||
handle_i += agx_pool_num_bos(&batch->pool);
|
||||
|
||||
agx_pool_get_bo_handles(&batch->pipeline_pool, handles + handle_i);
|
||||
handle_i += agx_pool_num_bos(&batch->pipeline_pool);
|
||||
|
||||
/* Size calculation should've been exact */
|
||||
assert(handle_i == handle_count);
|
||||
|
||||
/* TODO: Linux UAPI submission */
|
||||
(void)dev;
|
||||
(void)zbias;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue