diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2019-03-08 22:00:09 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2019-06-26 08:31:49 -0700 |
commit | 9086024401b5e09349da6c40771eaa62314b7a99 (patch) | |
tree | 81ed6dc998ac7b5e554f4c2d3dbaad63449b3333 /tests | |
parent | 3ed0e28c9977a93bddb59edb4ce4c20b19e55cf5 (diff) |
genmipmap-errors: Check for GL_ARB_depth_texture before creating a depth texture
Neither GL_EXT_packed_depth_stencil nor GL_ARB_depth_buffer_float
implies that the implementation can create depth textures. This affects
the R200 driver in Mesa, for example.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/gl-3.0/api/genmipmap-errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/gl-3.0/api/genmipmap-errors.c b/tests/spec/gl-3.0/api/genmipmap-errors.c index 40ff62fbc..3ebeeed2c 100644 --- a/tests/spec/gl-3.0/api/genmipmap-errors.c +++ b/tests/spec/gl-3.0/api/genmipmap-errors.c @@ -103,9 +103,9 @@ test_genmipmap_errors(void) /* Packed depth / stencil formats */ { GL_DEPTH24_STENCIL8, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, - {"GL_EXT_packed_depth_stencil", NULL} }, + {"GL_EXT_packed_depth_stencil", "GL_ARB_depth_texture"} }, { GL_DEPTH32F_STENCIL8, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, - {"GL_ARB_depth_buffer_float", NULL} } + {"GL_ARB_depth_buffer_float", "GL_ARB_depth_texture"} } }; int i, j; bool pass = true; |