i965: Share the flush for brw_blorp_miptree_download into a pbo
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Oct 2017 20:43:45 +0000 (21:43 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Oct 2017 02:58:40 +0000 (19:58 -0700)
commitc866e0b3ca563de579d0231278239aa6427c9ddf
tree2b0d88bf9b09de880778a0d4a50986bdf617cf74
parent760a5815d4bb6d3d7bd5c9dad8a195c7f5ae79d1
i965: Share the flush for brw_blorp_miptree_download into a pbo

As all users of brw_blorp_miptree_download() must emit a full pipeline
and cache flush when targetting a user PBO (as that PBO may then be
subsequently bound or *be* bound anywhere and outside of the driver
dirty tracking) move that flush into brw_blorp_miptree_download()
itself.

v2 (Ken): Rebase without userptr stuff so it can land sooner.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/intel_pixel_read.c
src/mesa/drivers/dri/i965/intel_tex_image.c