intel: Remove the pbo zero-copy code.
authorEric Anholt <eric@anholt.net>
Wed, 21 Sep 2011 16:10:19 +0000 (09:10 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Sep 2011 18:03:13 +0000 (11:03 -0700)
commitbc0335fc0e0bd6a777ef16ad5245d35ccf7adcf6
tree61ecdd9f431f46080bb9d6d5ff3212df67176adb
parent57024e084a26ce4b9555979b512945aa557cc37b
intel: Remove the pbo zero-copy code.

There were notes about the possibility of slowdowns due to zcopy from
a PBO due to thrashing around of the region.  Slowdowns are even more
likely now that textures are generally tiled, which a zcopy wouldn't
get.  Additionally, there were no checks on the buffer size to ensure
that the hardware-required rounding was present, which could result in
GPU hangs on large zcopy PBOs.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_buffer_objects.h
src/mesa/drivers/dri/intel/intel_regions.c
src/mesa/drivers/dri/intel/intel_regions.h
src/mesa/drivers/dri/intel/intel_tex_image.c