[Piglit] [PATCH piglit] Add a test case for all of the modes of BPTC texture compression

Grigori Goronzy greg at chown.ath.cx
Wed Jul 23 13:55:41 PDT 2014


On 22.07.2014 20:56, Neil Roberts wrote:
> +/** @file bptc-modes.c
> + *
> + * Tests BPTC-compressed textures that with a block for each of the
> + * possible 8 modes. The texture is both rendered and retrieved with
> + * glGetTexImage and verified that it has the expected values.
> + */
> +
> +#include "piglit-util-gl.h"
> +
> +PIGLIT_GL_TEST_CONFIG_BEGIN
> +
> +	config.supports_gl_compat_version = 10;
> +
> +	config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
> +
> +PIGLIT_GL_TEST_CONFIG_END
> +

That looks a bit strange to test textures (mode 4-7) with alpha
channel... it should be PIGLIT_GL_VISUAL_RGBA! I have implemented BPTC
for radeonsi, and it failed with the alpha formats because of this. How
did that ever work on nvc0, r600g and i965?

Grigori

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140723/f38a6388/attachment.sig>


More information about the Piglit mailing list