mesa/src
Jason Ekstrand 57c1d0ea07 i965/miptree: Enforce that height == 1 for 1-D array textures
The GL API and mesa internals do this differently than we do.  In GL, there
is no depth parameter for 1-D arrays and height is used.  In the i965
miptree code we do the sane thing and make height == 1 and use depth for
number of slices.  This makes for a mismatch every time we create a 1-D
array texture from GL.  Instead of actually solving this problem, we just
said "1-D is hard, let's make sure it works no matter which way we pass the
parameters" and called it a day.

This commit fixes the one GL -> i965 transition point where we weren't
already handling 1-D array textures to do the right thing and then replaces
the magic fixup code with an assert that you're doing the right thing.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Cc: "12.0 11.2 11.1" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d4d505d0b0)
2016-07-21 14:32:33 +01:00
..
compiler glsl/types: Use _mesa_hash_data for hashing function types 2016-07-21 12:19:38 +01:00
egl egl/android: Stop leaking DRI images 2016-07-21 14:29:40 +01:00
gallium gallium/dri: Add shared glapi to LIBADD on Android 2016-07-21 14:01:15 +01:00
gbm gbm: remove define _DEFAULT_SOURCE 2016-05-23 12:09:11 +01:00
getopt
glx Avoid overflow in 'last' variable of FindGLXFunction(...) 2016-07-21 14:31:27 +01:00
gtest
hgl
intel anv: Handle VK_WHOLE_SIZE properly for buffer views 2016-07-21 13:46:02 +01:00
loader loader: add a libdrm case for loader_get_device_name_for_fd 2016-04-21 14:41:41 +01:00
mapi mapi: Export all GLES 3.1 functions in libGLESv2.so 2016-07-07 16:12:32 +01:00
mesa i965/miptree: Enforce that height == 1 for 1-D array textures 2016-07-21 14:32:33 +01:00
util mesa: Add .gitignore entries for make check binaries 2016-05-25 09:41:44 -07:00
Makefile.am automake: don't mandate git_sha1.h/MESA_GIT_SHA1 2016-07-07 16:12:33 +01:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00