[Piglit] [PATCH 2/2] arb_direct_state_access: New test for glGetTextureImage.
Ilia Mirkin
imirkin at alum.mit.edu
Mon Feb 16 13:03:19 PST 2015
On Mon, Feb 16, 2015 at 3:38 PM, Laura Ekstrand <laura at jlekstrand.net> wrote:
> +enum piglit_result
> +piglit_display(void)
> +{
> + int i;
> +
> + for (i = 0; i < 2; ++i) {
> + upload_subtest(GL_TEXTURE_1D, (bool) i);
> + upload_subtest(GL_TEXTURE_1D_ARRAY, (bool) i);
Doesn't 1D_ARRAY also fall into GL_EXT_texture_array?
> + upload_subtest(GL_TEXTURE_2D, (bool) i);
> + upload_subtest(GL_TEXTURE_3D, (bool) i);
> + if (piglit_is_extension_supported("GL_ARB_texture_rectangle"))
> + upload_subtest(GL_TEXTURE_RECTANGLE, (bool) i);
> + if (piglit_is_extension_supported("GL_EXT_texture_array"))
> + upload_subtest(GL_TEXTURE_2D_ARRAY, (bool) i);
> + if (piglit_is_extension_supported("GL_ARB_texture_cube_map"))
> + upload_subtest(GL_TEXTURE_CUBE_MAP, (bool) i);
> + if (piglit_is_extension_supported(
> + "GL_ARB_texture_cube_map_array"))
> + upload_subtest(GL_TEXTURE_CUBE_MAP_ARRAY, (bool) i);
> + }
> +
> +
> + return pass ? PIGLIT_PASS : PIGLIT_FAIL;
> +}
> --
> 2.1.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list