[Piglit] [PATCH] shader_runner: clean up resident handles at exit time

Nicolai Hähnle nhaehnle at gmail.com
Thu Apr 27 19:56:29 UTC 2017


I wonder whether this should also be cleaned up after each test when 
running multiple tests at a time. But I don't think we're doing that 
with textures and other objects either...

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 27.04.2017 10:42, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  tests/shaders/shader_runner.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
> index 2047d6cb0..6ac5f9893 100644
> --- a/tests/shaders/shader_runner.c
> +++ b/tests/shaders/shader_runner.c
> @@ -3765,6 +3765,9 @@ piglit_display(void)
>  		for (i = 0; i < ARRAY_SIZE(texture_bindings); i++)
>  			clear_texture_binding(i);
>
> +		for (i = 0; i < ARRAY_SIZE(resident_handles); i++)
> +			clear_resident_handle(i);
> +
>  		if (prog != 0) {
>  			glDeleteProgram(prog);
>  			glUseProgram(0);
>


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the Piglit mailing list