iris: Use iris_flush_bits_for_history in iris_transfer_flush_region
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Jun 2019 04:01:21 +0000 (23:01 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Jun 2019 18:32:15 +0000 (13:32 -0500)
commitc4c17ab3ec1d67b0f2fd9816681378bdc8efe220
tree87ca350ff6e91b82ba3bf1ac5b526ae5f238d9df
parent6890340c31b75d83740f43b679313cf42cd72d23
iris: Use iris_flush_bits_for_history in iris_transfer_flush_region

Instead of using the combined iris_flush_and_dirty_for_history, use
iris_flush_bits_for_history directly - we were already using the split
out iris_dirty_for_history.  There's no need to dirty twice, and we can
avoid the looping altogether for non-buffers.
src/gallium/drivers/iris/iris_resource.c