i965: Fix shadowing of 'height' parameter
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Wed, 25 May 2016 16:30:26 +0000 (09:30 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Wed, 25 May 2016 16:42:55 +0000 (09:42 -0700)
commit89bb4be91e804a5eaa996822333a0c8c5ef423ae
tree3d7833c4a6195cf8e7ff6a1a7735bbe735bbdf40
parent595224f714d4a6734700d4d22165cb7fa3990238
i965: Fix shadowing of 'height' parameter

The nested declaration of 'height' shadows a parameter and uses
uninitialized memory. Fix by renaming to 'plane_height' which also makes
the code clearer.

This would typically break the bo size computation, but we don't use
that except when mmaping, and we don't mmap YUV buffers much.

Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
Reported-by: Mathias Fröhlich <Mathias.Froehlich@gmx.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c