i965/copy_image: Use the correct texture level
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 1 Sep 2014 11:38:28 +0000 (04:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Sep 2014 19:27:19 +0000 (12:27 -0700)
commitfcb6d5b9ef0d3559fa213c673ed996f194f56c2a
treef8049e4963a15d49f9251826c7e5960d4f643871
parent58b386dce435d2d82c2dc80b1a8d1373bb3e0ac6
i965/copy_image: Use the correct texture level

Previously, we were using the source images level for both source and
destination.  Also, we weren't taking the MinLevel from a potential texture
view into account.  This commit fixes both problems.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: "10.3" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82804
Tested-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/intel_copy_image.c