mesa/src
Erik Faye-Lund c120dbfe4d mesa/main: fix incorrect depth-error
If glGetTexImage or glGetnTexImage is called with a level that doesn't
exist, we get an error message on this form:

Mesa: User error: GL_INVALID_VALUE in glGetTexImage(depth = 0)

This is clearly nonsensical, because these APIs don't even have a
depth-parameter. The reason is that get_texture_image_dims() return
all-zero dimensions for non-existent texture-images, and we go on to
validate these dimensions as if they were user-input, because
glGetTextureSubImage requires checking.

So let's split this logic in two, so glGetTextureSubImage can have
stricter input-validation. All arguments that are no longer validated
are generated internally by mesa, so there's no use in validating them.

Fixes: 42891dbaa1 "gettextsubimage: verify zoffset and depth are correct"
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
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: fix incorrect depth-error 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