i965: Pass the map-mode along to intel_mipmap_tree_map_raw()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 May 2015 10:19:44 +0000 (11:19 +0100)
committerMatt Turner <mattst88@gmail.com>
Tue, 6 Jun 2017 18:47:46 +0000 (11:47 -0700)
commit6aa2e8777b4e82e7d7b11a977e57718b9d9fc0e8
tree44f38dc7f5d060e22457994529922bf8f21b9c50
parent47bb4985346a1ae7d8da06c591e7a3f05068ee99
i965: Pass the map-mode along to intel_mipmap_tree_map_raw()

Since we can distinguish when mapping between READ and WRITE, we can
pass along the map mode to avoid stalls and flushes where possible.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c