i965: Fix batch map failure check in INTEL_DEBUG=bat handling.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Sep 2017 01:50:06 +0000 (18:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Sep 2017 01:51:26 +0000 (18:51 -0700)
commitb339d63f0d0337df918c7aed471b90c02401bdb7
treebd16e1d2e727fc48163f259df03e6d1e189c1153
parent4db9ad98939711e5c00e9ffb196614fcd9a98ad8
i965: Fix batch map failure check in INTEL_DEBUG=bat handling.

I originally wrote the code to call the maps 'batch' and 'state',
until I remembered that 'batch' is the intel_batchbuffer struct pointer.
The NULL check was still using the wrong variable.

Caught by Coverity.

CID: 1418109
src/mesa/drivers/dri/i965/intel_batchbuffer.c