OSDN Git Service

i965/batch: avoid reverting batch buffer if saved state is an empty
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Wed, 12 Sep 2018 16:05:44 +0000 (19:05 +0300)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 30 Oct 2018 19:09:09 +0000 (12:09 -0700)
commita9031bf9b55602d93cccef6c926e2179c23205b4
tree8d2cf220c7dae3878d73ab5d7d3d97886b65e0d2
parentea738a91de4f418d371b76d93de2d326ab613b42
i965/batch: avoid reverting batch buffer if saved state is an empty

There's no point reverting to the last saved point if that save point is
the empty batch, we will just repeat ourselves.

CC: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 3faf56ffbdeb "intel: Add an interface for saving/restoring
                     the batchbuffer state."
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107626
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_compute.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/genX_blorp_exec.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h