Fix missing case for ANGLE_depth_texture
authorJamie Madill <jmadill@chromium.org>
Fri, 26 Jan 2018 22:57:17 +0000 (17:57 -0500)
committerJamie Madill <jmadill@chromium.org>
Fri, 26 Jan 2018 23:27:43 +0000 (23:27 +0000)
Happens when ANGLE_depth_texure is exposed and not OES_depth_texture.

Component: AOSP
Affects:
  dEQP-GLES2.functional.fbo.completeness.renderable.texture.stencil.depth_stencil_unsigned_int_24_8
  dEQP-GLES2.functional.fbo.completeness.renderable.texture.depth.depth_stencil_unsigned_int_24_8
  dEQP-GLES3.functional.fbo.completeness.renderable.texture.stencil.depth_stencil_unsigned_int_24_8
  dEQP-GLES3.functional.fbo.completeness.renderable.texture.depth.depth_stencil_unsigned_int_24_8

modules/glshared/glsFboCompletenessTests.cpp

index 35940bf..4c71ab9 100644 (file)
@@ -238,6 +238,11 @@ static const FormatExtEntry s_esExtFormats[] =
                (deUint32)(REQUIRED_RENDERABLE | DEPTH_RENDERABLE | TEXTURE_VALID),
                GLS_ARRAY_RANGE(s_oesDepthTextureFormats),
        },
+       {
+               "GL_OES_packed_depth_stencil GL_ANGLE_depth_texture",
+               (deUint32)(DEPTH_RENDERABLE | STENCIL_RENDERABLE | TEXTURE_VALID),
+               GLS_ARRAY_RANGE(s_oesPackedDepthStencilTexFormats),
+       },
        // \todo [2013-12-10 lauri] Find out if OES_texture_half_float is really a
        // requirement on ES3 also. Or is color_buffer_half_float applicatble at
        // all on ES3, since there's also EXT_color_buffer_float?