diff options
author | Timothy Arceri <tarceri@itsqueeze.com> | 2017-06-29 16:22:42 +1000 |
---|---|---|
committer | Timothy Arceri <tarceri@itsqueeze.com> | 2017-06-30 09:04:11 +1000 |
commit | d5d5450c92034b4a19ed12a092364ec64be96a36 (patch) | |
tree | 62d81bc06c84f35c0558c18987319cec6ff57741 /tests/spec/arb_blend_func_extended/api | |
parent | c0eb251ab9687e63c0c010d068fa652bacfb30d5 (diff) |
ARB_blend_func_extended: set KHR_no_error status
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'tests/spec/arb_blend_func_extended/api')
6 files changed, 16 insertions, 8 deletions
diff --git a/tests/spec/arb_blend_func_extended/api/bindfragdataindexed-invalid-parameters.c b/tests/spec/arb_blend_func_extended/api/bindfragdataindexed-invalid-parameters.c index c4a8d53e3..27ae06256 100644 --- a/tests/spec/arb_blend_func_extended/api/bindfragdataindexed-invalid-parameters.c +++ b/tests/spec/arb_blend_func_extended/api/bindfragdataindexed-invalid-parameters.c @@ -37,6 +37,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN config.supports_gl_es_version = 30; #endif config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + config.khr_no_error_support = PIGLIT_HAS_ERRORS; PIGLIT_GL_TEST_CONFIG_END diff --git a/tests/spec/arb_blend_func_extended/api/blend-api.c b/tests/spec/arb_blend_func_extended/api/blend-api.c index 4c34bc793..9160862c9 100644 --- a/tests/spec/arb_blend_func_extended/api/blend-api.c +++ b/tests/spec/arb_blend_func_extended/api/blend-api.c @@ -36,6 +36,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN config.supports_gl_es_version = 20; #endif config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + config.khr_no_error_support = PIGLIT_NO_ERRORS; PIGLIT_GL_TEST_CONFIG_END diff --git a/tests/spec/arb_blend_func_extended/api/builtins.c b/tests/spec/arb_blend_func_extended/api/builtins.c index 7525244b9..f4eac95db 100644 --- a/tests/spec/arb_blend_func_extended/api/builtins.c +++ b/tests/spec/arb_blend_func_extended/api/builtins.c @@ -27,6 +27,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN config.supports_gl_es_version = 20; config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + config.khr_no_error_support = PIGLIT_NO_ERRORS; PIGLIT_GL_TEST_CONFIG_END diff --git a/tests/spec/arb_blend_func_extended/api/error-at-begin.c b/tests/spec/arb_blend_func_extended/api/error-at-begin.c index da0950127..7acf33396 100644 --- a/tests/spec/arb_blend_func_extended/api/error-at-begin.c +++ b/tests/spec/arb_blend_func_extended/api/error-at-begin.c @@ -38,6 +38,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN config.supports_gl_compat_version = 10; config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + config.khr_no_error_support = PIGLIT_HAS_ERRORS; PIGLIT_GL_TEST_CONFIG_END diff --git a/tests/spec/arb_blend_func_extended/api/getfragdataindex.c b/tests/spec/arb_blend_func_extended/api/getfragdataindex.c index a30263ee2..3c0efd005 100644 --- a/tests/spec/arb_blend_func_extended/api/getfragdataindex.c +++ b/tests/spec/arb_blend_func_extended/api/getfragdataindex.c @@ -36,6 +36,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN config.supports_gl_es_version = 30; #endif config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + config.khr_no_error_support = PIGLIT_NO_ERRORS; PIGLIT_GL_TEST_CONFIG_END @@ -132,18 +133,20 @@ void piglit_init(int argc, char **argv) * OPERATION is generated. If name is not a varying out variable, * or if an error occurs, -1 will be returned." */ - printf("Querying index before linking...\n"); + if (!piglit_khr_no_error) { + printf("Querying index before linking...\n"); #ifdef PIGLIT_USE_OPENGL - idx = glGetFragDataIndex(prog, "v"); + idx = glGetFragDataIndex(prog, "v"); #else // PIGLIT_USE_OPENGLES3 - idx = glGetFragDataIndexEXT(prog, "v"); + idx = glGetFragDataIndexEXT(prog, "v"); #endif - if (!piglit_check_gl_error(GL_INVALID_OPERATION)) - piglit_report_result(PIGLIT_FAIL); + if (!piglit_check_gl_error(GL_INVALID_OPERATION)) + piglit_report_result(PIGLIT_FAIL); - if (idx != -1) { - fprintf(stderr, "Expected index = -1, got %d\n", idx); - piglit_report_result(PIGLIT_FAIL); + if (idx != -1) { + fprintf(stderr, "Expected index = -1, got %d\n", idx); + piglit_report_result(PIGLIT_FAIL); + } } glLinkProgram(prog); diff --git a/tests/spec/arb_blend_func_extended/api/output-location.c b/tests/spec/arb_blend_func_extended/api/output-location.c index 4d0181817..dbda66f7d 100644 --- a/tests/spec/arb_blend_func_extended/api/output-location.c +++ b/tests/spec/arb_blend_func_extended/api/output-location.c @@ -36,6 +36,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN config.supports_gl_es_version = 30; #endif config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + config.khr_no_error_support = PIGLIT_NO_ERRORS; PIGLIT_GL_TEST_CONFIG_END |