OSDN Git Service

i965: Require space for MI_BATCHBUFFER_END.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 5 Jan 2018 20:07:20 +0000 (12:07 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 7 Jan 2018 04:10:32 +0000 (20:10 -0800)
commit1c9f1a28c0738a0b1cb8626af431d18eeee3f4f1
tree84a7c70a89f45f14b96f2cdd8d85624c6e8af601
parenta693a6f51aa7c7e5db02e2a13d676c56b2aaed86
i965: Require space for MI_BATCHBUFFER_END.

intel_batchbuffer_emit_dword doesn't reserve space for the DWord it
emits.  In the past, we had some reserved batch space to ensure this
worked.  With the switch to growing batches, we need to actually request
space so that we grow if necessary.

Fixes: 2c46a67b4138631217141f (i965: Delete BATCH_RESERVED handling.)
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_batchbuffer.c