i965: Use PTE MOCS for all external buffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Nov 2017 22:26:17 +0000 (15:26 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Nov 2017 05:35:44 +0000 (21:35 -0800)
commitd7a19d69ebc032ba7207fc97bc6f10d5bb35bb99
tree923109f896bb76c606662117c654d4837723b724
parentbc933d0e8462871e19328f66182c35543e334013
i965: Use PTE MOCS for all external buffers

We were already using PTE for all render targets in case one happened to
get scanned out.  However, this still wasn't 100% correct because there
are still possibly cases where we may want to texture from an external
buffer even though we don't know the caching mode.  This can happen, for
instance, on buffers imported from another GPU via prime.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101691
Cc: "17.3" <mesa-stable@lists.freedesktop.org>
Tested-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c