[Piglit] [PATCH 12/23] shader_runner: Add simple 1D and 3D texture creation commands.
Ilia Mirkin
imirkin at alum.mit.edu
Thu Nov 23 20:53:17 UTC 2017
On Thu, Nov 23, 2017 at 3:46 PM, Fabian Bieler <fabianbieler at fastmail.fm> wrote:
> ---
> tests/shaders/shader_runner.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
> index 4dfed5d..4299e34 100644
> --- a/tests/shaders/shader_runner.c
> +++ b/tests/shaders/shader_runner.c
> @@ -3670,6 +3670,24 @@ piglit_display(void)
> else
> set_texture_binding(tex, tex_obj, w, h, d);
>
> +#ifdef PIGLIT_USE_OPENGL
> + } else if (sscanf(line,
> + "texture rgbw 1D %d",
> + &tex) == 1) {
> + glActiveTexture(GL_TEXTURE0 + tex);
> + const GLuint handle = piglit_rgbw_texture_1d();
> + set_texture_binding(tex, handle, 4, 1, 1);
> +#endif
> +
> +#if defined(PIGLIT_USE_OPENGL) || defined(PIGLIT_USE_OPENGL_ES3)
There's OES_texture_3D which should work OK. I think this is fine to
always keep enabled.
> + } else if (sscanf(line,
> + "texture rgbw 3D %d",
> + &tex) == 1) {
> + glActiveTexture(GL_TEXTURE0 + tex);
> + const GLuint handle = piglit_rgbw_texture_3d();
> + set_texture_binding(tex, handle, 2, 2, 2);
> +#endif
> +
> } else if (sscanf(line,
> "texture rgbw 2DArray %d ( %d , %d , %d )",
> &tex, &w, &h, &l) == 4) {
> --
> 2.7.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list