OSDN Git Service

meta/copy_image: Use the correct texture level when creating views
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 2 Sep 2014 21:08:31 +0000 (14:08 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Sep 2014 19:27:19 +0000 (12:27 -0700)
commitb608cd7fbf0c98c73fe5d0c87db51c0a244d420f
treee21282abeb64cea330626dee3202ae758d2c1d21
parentfcb6d5b9ef0d3559fa213c673ed996f194f56c2a
meta/copy_image: Use the correct texture level when creating views

Previously, we were accidentally assuming that the level of both textures
was 0.  Now we actually use the correct level in our hacked texture view.
This doesn't 100% fix the meta path because the texture type is getting
lost somewhere in the pipeline.  However, it actually copies to/from the
correct layer now.

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/common/meta_copy_image.c