mesa/src
Erik Faye-Lund fe4bf97af2 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>
(cherry picked from commit 38bbb61252)
2018-11-26 12:44:18 +01:00
..
amd radv: Fix opaque metadata descriptor last layer. 2018-11-26 12:18:36 +01:00
broadcom android: broadcom/cle: export the broadcom top level path headers 2018-09-17 17:02:30 +02:00
compiler glsl: free or reuse memory allocated for TF varying 2018-11-26 12:22:16 +01:00
egl egl/dri: fix error value with unknown drm format 2018-11-21 10:12:25 +01:00
gallium winsys/amdgpu: fix a device handle leak in amdgpu_winsys_create 2018-11-26 12:13:55 +01:00
gbm gbm: remove unnecessary meson include 2018-11-21 10:12:24 +01:00
getopt
glx glx: make xf86vidmode mandatory for direct rendering 2018-11-21 10:12:25 +01:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel anv: Put robust buffer access in the pipeline hash 2018-11-23 10:24:38 +01:00
loader loader/dri3: Also wait for front buffer fence if we triggered it 2018-10-22 11:47:25 +02:00
mapi glapi: add missing visibility args 2018-11-23 10:30:24 +01:00
mesa mesa/main: remove bogus error for zero-sized images 2018-11-26 12:44:18 +01:00
util util/ralloc: Make sizeof(linear_header) a multiple of 8 2018-11-14 09:41:14 +01:00
vulkan wsi/wayland: only finish() a successfully init()ed display 2018-11-07 10:27:29 +01:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am egl: rewire the build systems to use libwayland-egl 2018-06-06 12:11:57 -07:00
meson.build meson: fix wayland-less builds 2018-11-21 10:12:24 +01:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00