i965: call intel_prepare_render always when reading pixels
authorTapani Pälli <tapani.palli@intel.com>
Thu, 5 Jan 2017 11:40:35 +0000 (13:40 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 9 Jan 2017 05:44:53 +0000 (07:44 +0200)
commit8b43f4201129a5d11ebf314f9ae612289fd0994e
treea0ab46083ae6143ffe015d8e7e8e878dade43e2f
parent953e4e4417a7deb1a5bf880dda30adb09378473d
i965: call intel_prepare_render always when reading pixels

Currently we do this only in the fallback code (when tiled memcpy
version failed) but it needs to be done always so that we have
correct read and write buffer in place. No regressions seen in CI.

Fixes:
dEQP-EGL.functional.buffer_age.*

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98330
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_pixel_read.c