[Piglit] [PATCH] shader_runner: clean up resident handles at exit time
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Apr 27 19:57:12 UTC 2017
On 04/27/2017 09:56 PM, Nicolai Hähnle wrote:
> 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...
Nope, we don't.
>
> 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);
>>
>
>
More information about the Piglit
mailing list