mesa: Inherit texture view multi-sample information from the original texture images.
authorHenri Verbeet <hverbeet@gmail.com>
Mon, 26 Mar 2018 14:36:08 +0000 (19:06 +0430)
committerHenri Verbeet <hverbeet@gmail.com>
Thu, 29 Mar 2018 10:08:25 +0000 (14:38 +0430)
commit0b73c86b8030a7f7cb35fc85c83eff7f2b8c24a4
tree2a89d8402c0741d9874be587e6f1970c12865c97
parente45fe0ed66af32a36b03d5a5141e68fad0d15e6a
mesa: Inherit texture view multi-sample information from the original texture images.

Found running "The Witness" in Wine. Without this patch, texture views created
on multi-sample textures would have a GL_TEXTURE_SAMPLES of 0. All things
considered such views actually work surprisingly well, but when combined with
(plain) multi-sample textures in a framebuffer object, the resulting FBO is
incomplete because the sample counts don't match.

CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/teximage.c
src/mesa/main/teximage.h
src/mesa/main/textureview.c