diff options
author | Henri Verbeet <[email protected]> | 2018-03-26 19:06:08 +0430 |
---|---|---|
committer | Henri Verbeet <[email protected]> | 2018-03-29 14:38:25 +0430 |
commit | 0b73c86b8030a7f7cb35fc85c83eff7f2b8c24a4 (patch) | |
tree | 2a89d8402c0741d9874be587e6f1970c12865c97 /src/mesa/main/teximage.h | |
parent | e45fe0ed66af32a36b03d5a5141e68fad0d15e6a (diff) |
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: <[email protected]>
Signed-off-by: Henri Verbeet <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r-- | src/mesa/main/teximage.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 2e950bf42bb..bf790af2766 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -130,6 +130,14 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum internalFormat, mesa_format format); +extern void +_mesa_init_teximage_fields_ms(struct gl_context *ctx, + struct gl_texture_image *img, + GLsizei width, GLsizei height, GLsizei depth, + GLint border, GLenum internalFormat, + mesa_format format, + GLuint numSamples, + GLboolean fixedSampleLocations); extern mesa_format |