i965: Replace cpu_map pointers with a "use_shadow_copy" boolean.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 5 Jan 2018 19:44:50 +0000 (11:44 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 17 Jan 2018 21:13:26 +0000 (13:13 -0800)
commit02c1c25b1a620a336f2e18d39bba188635363f24
tree0e674bb819488fd840695164d123fd416a832393
parent11674dad8acef294bc920e7f02ef45185420fbce
i965: Replace cpu_map pointers with a "use_shadow_copy" boolean.

Having a boolean for "we're using malloc'd shadow copies for all
buffers" is cleaner than having a cpu_map pointer for each.  It was
okay when we had one buffer, but this is more obvious.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/intel_batchbuffer.c