iris: "Fix" transfer maps of buffers
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Nov 2018 10:25:24 +0000 (02:25 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
commitc06f6d12a59c4a2374188e03f21377e593c80354
tree488e318f4096016330b911b4e4ea3b14e8c03f50
parentb2c04aa3a05442233ad0bab140a06357c5b920b7
iris: "Fix" transfer maps of buffers

x should be in bytes, not cpp units

This generally worked out because PIPE_BUFFER is supposedly required
to be R8_UINT or R8_UNORM.  I hear some state trackers pass
PIPE_FORMAT_NONE instead, however, which would make this break.

Just do the right thing directly, to be defensive and clear.
src/gallium/drivers/iris/iris_resource.c