* actual ExecuteCommands implementation.
*/
if ((cmd_buffer->batch_bos.next == cmd_buffer->batch_bos.prev) &&
- (anv_cmd_buffer_current_batch_bo(cmd_buffer)->length <
- ANV_CMD_BUFFER_BATCH_SIZE / 2)) {
+ (batch_bo->length < ANV_CMD_BUFFER_BATCH_SIZE / 2)) {
/* If the secondary has exactly one batch buffer in its list *and*
* that batch buffer is less than half of the maximum size, we're
* probably better of simply copying it into our batch.
* so we can unconditionally decrement right before adding the
* MI_BATCH_BUFFER_START command.
*/
- anv_cmd_buffer_current_batch_bo(cmd_buffer)->relocs.num_relocs++;
+ batch_bo->relocs.num_relocs++;
cmd_buffer->batch.next += GEN8_MI_BATCH_BUFFER_START_length * 4;
} else {
cmd_buffer->exec_mode = ANV_CMD_BUFFER_EXEC_MODE_COPY_AND_CHAIN;