i965: Round copy size to the nearest block in intel_miptree_copy
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 13 May 2017 18:02:22 +0000 (11:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 May 2017 14:58:01 +0000 (07:58 -0700)
commit0901d0bc4c78313eaaf29dff74c6a7bf5514f75b
tree3e47e9a3b7cea1b3592037868967e815ddbfc56b
parent79f2a5541f92920d35d3621179f7377c97cc75e1
i965: Round copy size to the nearest block in intel_miptree_copy

The width and height of the copy don't have to be aligned to the block
size if they specify the right or bottom edges of the image.  (See also
the comment and asserts right above).  We need to round them up when we
do the division in order to get it 100% right.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "17.0 17.1" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/intel_blit.c