dri/intel: Add explicit size parameter to intel_region_alloc_for_fd
authorKeith Packard <keithp@keithp.com>
Tue, 4 Jun 2013 03:59:31 +0000 (20:59 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 8 Nov 2013 03:08:09 +0000 (19:08 -0800)
commitbf6591e948d95b73c5b8d10fa448ec87e9572b8e
treee11e022f27a3c8bd016dd8c377a373818ac9db4f
parent888533dcd6fe30fc0729ef4ae8fa495c69dcc629
dri/intel: Add explicit size parameter to intel_region_alloc_for_fd

Instead of assuming that the size will be height * pitch, have the caller pass
in the size explicitly.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i915/intel_regions.c
src/mesa/drivers/dri/i915/intel_regions.h
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/intel_regions.c
src/mesa/drivers/dri/i965/intel_regions.h
src/mesa/drivers/dri/i965/intel_screen.c