mesa/src
Erik Faye-Lund 38bbb61252 mesa/main: remove bogus error for zero-sized images
The explanation quotes the spec on the following wording to justify the
error:

"An INVALID_VALUE error is generated if xoffset + width is greater than
 the texture’s width, yoffset + height is greater than the  texture’s
 height, or zoffset + depth is greater than the texture’s depth."

However, this shouldn't generate an error in the case where *all three*
of width, xoffset and the texture's width are zero. In this case, we end
up generating an unspecified error.

So let's remove this check, and instead make sure that we consider this
as an empty texture.

So let's not generate an error, there's non mandated in the spec in
xoffset/yoffset/zoffset = 0 case. We already avoid doing any work in
this case, because of the final, non-error generating check in this
function.

Fixes: b37b35a5d2 "getteximage: assume texture image is empty for non defined levels"
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
2018-11-26 12:29:54 +01:00
..
amd radv: Fix opaque metadata descriptor last layer. 2018-11-26 09:29:39 +01:00
broadcom meson: Add tests to suites 2018-11-20 09:09:22 -08:00
compiler glsl: free or reuse memory allocated for TF varying 2018-11-26 09:58:25 +01:00
egl meson: Add tests to suites 2018-11-20 09:09:22 -08:00
gallium nv50/ir: remove dnz flag when converting MAD to ADD due to optimizations 2018-11-24 22:15:53 -05:00
gbm meson: Add tests to suites 2018-11-20 09:09:22 -08:00
getopt
glx meson: Add tests to suites 2018-11-20 09:09:22 -08:00
gtest meson: hide warnings from external project gtest 2018-10-31 18:20:25 +00:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel anv: allow exporting an imported SYNC_FD semaphore type 2018-11-23 07:49:46 +02:00
loader loader: Factor out the common driver opening logic from each loader. 2018-11-16 17:49:17 -08:00
mapi mesa/main: remove ARB suffix from glGetnTexImage 2018-11-26 12:29:54 +01:00
mesa mesa/main: remove bogus error for zero-sized images 2018-11-26 12:29:54 +01:00
util drirc: enable glthread for Talos Principle 2018-11-20 21:17:42 -05:00
vulkan vulkan: Update the XML and headers to 1.1.93 2018-11-22 08:16:40 -06:00
Makefile.am configure: allow building with python3 2018-10-31 19:15:50 +00:00
meson.build meson: fix wayland-less builds 2018-11-13 17:25:02 +00:00
SConscript scons: Remove gles option. 2018-10-19 16:50:26 +01:00