<div dir="ltr"><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br><br></div>Marek<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 6, 2018 at 10:26 AM, Topi Pohjolainen <span dir="ltr"><<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">CID: 1433709<br>
Fixes: ca721b3d8: mesa: use GLenum16 in a few more places<br>
CC: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br>
CC: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>><br>
<br>
Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
---<br>
src/mesa/main/teximage.c | 5 +++--<br>
1 file changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c<br>
index 8f53510..f560512 100644<br>
--- a/src/mesa/main/teximage.c<br>
+++ b/src/mesa/main/teximage.c<br>
@@ -845,6 +845,7 @@ _mesa_init_teximage_fields_ms(<wbr>struct gl_context *ctx,<br>
mesa_format format,<br>
GLuint numSamples, GLboolean fixedSampleLocations)<br>
{<br>
+ const GLint base_format =_mesa_base_tex_format(ctx, internalFormat);<br>
GLenum target;<br>
assert(img);<br>
assert(width >= 0);<br>
@@ -852,8 +853,8 @@ _mesa_init_teximage_fields_ms(<wbr>struct gl_context *ctx,<br>
assert(depth >= 0);<br>
<br>
target = img->TexObject->Target;<br>
- img->_BaseFormat = _mesa_base_tex_format( ctx, internalFormat );<br>
- assert(img->_BaseFormat != -1);<br>
+ assert(base_format != -1);<br>
+ img->_BaseFormat = (GLenum16)base_format;<br>
img->InternalFormat = internalFormat;<br>
img->Border = border;<br>
img->Width = width;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>