mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
iris: Initialize batch screen in iris_init_batch()
The comment to initialize screen earlier not valid anymore so we can initialize it with the rest of batch fields. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22172>
This commit is contained in:
parent
35a547430e
commit
b6cf4001d3
1 changed files with 1 additions and 4 deletions
|
|
@ -197,6 +197,7 @@ iris_init_batch(struct iris_context *ice,
|
|||
batch->state_sizes = ice->state.sizes;
|
||||
batch->name = name;
|
||||
batch->ice = ice;
|
||||
batch->screen = screen;
|
||||
batch->contains_fence_signal = false;
|
||||
|
||||
batch->fine_fences.uploader =
|
||||
|
|
@ -255,10 +256,6 @@ iris_init_batch(struct iris_context *ice,
|
|||
void
|
||||
iris_init_batches(struct iris_context *ice)
|
||||
{
|
||||
/* We have to do this early for iris_foreach_batch() to work */
|
||||
for (int i = 0; i < IRIS_BATCH_COUNT; i++)
|
||||
ice->batches[i].screen = (void *) ice->ctx.screen;
|
||||
|
||||
iris_i915_init_batches(ice);
|
||||
|
||||
iris_foreach_batch(ice, batch)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue