mesa/src
Nanley Chery 16958f7171 mesa/readpix: Clip ReadPixels() area to the ReadBuffer's
The fast path for Intel's ReadPixels() unintentionally omits clipping
the specified area to a valid one. Rather than clip in various
corner-cases, perform this operation in the API validation stage.

The bug in intel_readpixels_tiled_memcpy() showed itself when the winsys
ReadBuffer's height was smaller than the one specified by ReadPixels().
yoffset became negative, which was an invalid input for tiled_to_linear().

v2: Move clipping to validation stage (Jason)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92193
Reported-by: Marta Löfstedt <marta.lofstedt@intel.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 605832736a)
2016-04-11 19:51:19 +01:00
..
egl egl/dri2: expose srgb configs when KHR_gl_colorspace is available 2016-02-03 14:51:22 +00:00
gallium nvc0: avoid negatives in PUSH_SPACE argument 2016-04-11 19:51:19 +01:00
gbm gbm.h: Add a missing stddef.h include for size_t. 2015-10-30 19:12:14 +00:00
getopt
glsl glsl: return cloned signature, not the builtin one 2016-04-11 19:51:19 +01:00
glx glx/dri3: a drawable might not be bound at wait time 2016-01-08 12:05:26 +02:00
gtest mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
hgl
loader loader: unconditionally add AM_CPPFLAGS to libloader_la_CPPFLAGS 2015-11-29 17:56:36 +00:00
mapi mesa: do not enable KHR_debug for ES 1.0 2015-12-04 16:37:06 +00:00
mesa mesa/readpix: Clip ReadPixels() area to the ReadBuffer's 2016-04-11 19:51:19 +01:00
util ralloc: Fix ralloc_adopt() to the old context's last child's parent. 2016-01-08 12:05:26 +02:00
Makefile.am glsl: move shader_enums into nir 2015-10-09 15:03:28 -04:00
SConscript scons: rework the EGL build 2015-07-22 16:35:27 +01:00