diff options
author | Laura Ekstrand <laura@jlekstrand.net> | 2014-12-19 13:56:09 -0800 |
---|---|---|
committer | Laura Ekstrand <laura@jlekstrand.net> | 2014-12-30 10:16:42 -0800 |
commit | 91fc05b52ba936336892ba108dcd5a7b3b270b28 (patch) | |
tree | 092bfb6e453a1b78dfc38e3d71f6e44434af6d06 | |
parent | 3ed2b2a53db6941087ffdb174b74192a756985af (diff) |
arb_direct_state_access: texture-errors now correctly checks for texture multisample and texture rectangle extensions.
-rw-r--r-- | tests/spec/arb_direct_state_access/texture-errors.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/spec/arb_direct_state_access/texture-errors.c b/tests/spec/arb_direct_state_access/texture-errors.c index 6bbf9c780..c79fbc4af 100644 --- a/tests/spec/arb_direct_state_access/texture-errors.c +++ b/tests/spec/arb_direct_state_access/texture-errors.c @@ -452,17 +452,21 @@ piglit_display(void) { bool pass = true; pass &= test_pos_and_sizes(); - pass &= test_target_name(); /* segfaults on mesa */ - pass &= test_getter_target_name(); /* segfaults on mesa */ + pass &= test_target_name(); + pass &= test_getter_target_name(); pass &= test_pname(); pass &= test_getter_pname(); pass &= test_scalar_vector(); - pass &= test_multisample(); - pass &= test_texture_rec(); - pass &= test_texture_rec_min_filter(); - pass &= test_multisample_texture_base(); - pass &= test_texture_rec_texture_base(); pass &= test_texture_level_negative(); + if (piglit_is_extension_supported("GL_ARB_texture_multisample")){ + pass &= test_multisample(); + pass &= test_multisample_texture_base(); + } + if (piglit_is_extension_supported("GL_ARB_texture_rectangle")) { + pass &= test_texture_rec(); + pass &= test_texture_rec_min_filter(); + pass &= test_texture_rec_texture_base(); + } return pass ? PIGLIT_PASS : PIGLIT_FAIL; } |