intel: Fix regression in intel_create_image_from_name stride handling
authorTapani Pälli <tapani.palli@intel.com>
Mon, 28 Jan 2013 06:53:56 +0000 (08:53 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 4 Feb 2013 21:59:02 +0000 (13:59 -0800)
commite062a4187d8ea518a39c913ae7562cf1d8ac3205
tree1e58f09c8a95ffe3093bf41370f0123ce5ec47a3
parent5751d0cb2dd6d1682d2a954e3f008be61b4ab7e2
intel: Fix regression in intel_create_image_from_name stride handling

Strangely, the DRIimage interface we have passes the pitch in pixels
instead of bytes, which anholt missed in the change to using bytes for
region pitch.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_screen.c