[Piglit] [PATCH] copyteximage: add more red/rg formats in supported_format()
Anuj Phogat
anuj.phogat at gmail.com
Fri Aug 24 11:21:16 PDT 2012
On Thu, Aug 23, 2012 at 7:26 PM, Brian Paul <brian.e.paul at gmail.com> wrote:
> From: Brian Paul <brianp at vmware.com>
>
> This fixes some failures when GL_ARB_texture_rg is not supported.
> ---
> tests/texturing/copyteximage.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/tests/texturing/copyteximage.c b/tests/texturing/copyteximage.c
> index 8a35703..f54e8d9 100644
> --- a/tests/texturing/copyteximage.c
> +++ b/tests/texturing/copyteximage.c
> @@ -130,7 +130,10 @@ supported_format(GLenum format)
> case GL_RGB16F:
> case GL_RGB32F:
> return piglit_is_extension_supported("GL_ARB_texture_float");
> + case GL_RED:
> case GL_RG:
> + case GL_COMPRESSED_RED:
> + case GL_COMPRESSED_RG:
> return piglit_is_extension_supported("GL_ARB_texture_rg");
> case GL_DEPTH_COMPONENT32F:
> return piglit_is_extension_supported("GL_ARB_depth_buffer_float");
> --
> 1.7.4.1
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the Piglit
mailing list