mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
iris: fix decoding and undo testing code
This commit is contained in:
parent
f31eea1f00
commit
48ddd7212d
1 changed files with 4 additions and 2 deletions
|
|
@ -321,6 +321,9 @@ iris_batch_emit(struct iris_batch *batch, const void *data, unsigned size)
|
|||
static void
|
||||
iris_finish_batch(struct iris_batch *batch)
|
||||
{
|
||||
if (batch->bo == batch->exec_bos[0])
|
||||
batch->primary_batch_size = batch_bytes_used(batch);
|
||||
|
||||
// XXX: ISP DIS
|
||||
|
||||
/* Emit MI_BATCH_BUFFER_END to finish our batch. Note that execbuf2
|
||||
|
|
@ -357,8 +360,7 @@ submit_batch(struct iris_batch *batch, int in_fence_fd, int *out_fence_fd)
|
|||
.buffers_ptr = (uintptr_t) batch->validation_list,
|
||||
.buffer_count = batch->exec_count,
|
||||
.batch_start_offset = 0,
|
||||
.batch_len = batch->bo == batch->exec_bos[0] ? batch_bytes_used(batch)
|
||||
: batch->primary_batch_size,
|
||||
.batch_len = batch->primary_batch_size,
|
||||
.flags = batch->ring |
|
||||
I915_EXEC_NO_RELOC |
|
||||
I915_EXEC_BATCH_FIRST |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue