iris: Don't mutate box in transfer map code
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Mar 2019 22:35:28 +0000 (15:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Mar 2019 06:31:51 +0000 (23:31 -0700)
commit0c3adaad22c34742058a9f52138cfd37778ef6df
treed123357f764e05120c0340a180415b1c29e176b8
parent3b41175c22e14775656e13d11ca84cad83837b04
iris: Don't mutate box in transfer map code

Not mutating the boxes is arguably cleaner.

Split from a patch by Chris Wilson but reworked to use a pointer to the
original box rather than making a copy at all.
src/gallium/drivers/iris/iris_resource.c