[Piglit] [PATCH 12/16] namespace-pollution: Add glGetTexImage from a compressed texture as an operation to test

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 7 09:32:13 PST 2016


On 7 January 2016 at 02:53, Ian Romanick <idr at freedesktop.org> wrote:

>  static bool
> +do_GetTexImage_compressed(bool silent_skip)
> +{

> +       generate_random_data(data, sizeof(data), GL_PIXEL_UNPACK_BUFFER, pbo);
GL_TEXTURE_2D ?

> +       glBindTexture(GL_TEXTURE_2D, tex);
> +       glCompressedTexImage2D(GL_TEXTURE_2D, 0 /* level */, internal_format,
> +                              16 /* width */, 16 /* height */, 0 /* border */,
> +                              sizeof(data), data);

-Emil


More information about the Piglit mailing list