From: Andrii Simiklit <[email protected]> If due to some reasons the last saved batch is empty and we restoring batch using this empty batch we have to call 'brw_new_batch' to properly reset all fields of it or we can just avoid this restoring to prevent incorrect state of the batch.
Andrii Simiklit (2): i965/batch: avoid reverting batch buffer if saved state is an empty i965/batch: don't ignore the 'brw_new_batch' call for a 'new batch' src/mesa/drivers/dri/i965/brw_compute.c | 3 ++- src/mesa/drivers/dri/i965/brw_draw.c | 3 ++- src/mesa/drivers/dri/i965/genX_blorp_exec.c | 3 ++- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 11 +++++++++++ src/mesa/drivers/dri/i965/intel_batchbuffer.h | 1 + 5 files changed, 18 insertions(+), 3 deletions(-) -- 2.7.4 _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
