[Piglit] [PATCH] arb_sample_shading-builtin-gl-sample-position: Fix VS 2015 build.

Brian Paul brianp at vmware.com
Tue Jul 21 17:36:08 PDT 2015


On 07/21/2015 06:24 PM, Vinson Lee wrote:
> builtin-gl-sample-position.cpp(81): error C3688: invalid literal suffix 'MAX_NUM_SAMPLES_STR'; literal operator or literal operator template 'operator ""MAX_NUM_SAMPLES_STR' not found
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91419
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/spec/arb_sample_shading/execution/builtin-gl-sample-position.cpp | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/arb_sample_shading/execution/builtin-gl-sample-position.cpp b/tests/spec/arb_sample_shading/execution/builtin-gl-sample-position.cpp
> index ebe7ce4..4ab6319 100644
> --- a/tests/spec/arb_sample_shading/execution/builtin-gl-sample-position.cpp
> +++ b/tests/spec/arb_sample_shading/execution/builtin-gl-sample-position.cpp
> @@ -69,7 +69,7 @@ compile_shader(void)
>   		"#version 130\n"
>   		"#extension GL_ARB_sample_shading : enable\n"
>   		"uniform int samples;\n"
> -		"uniform vec2 expected_pos["MAX_NUM_SAMPLES_STR"];\n"
> +		"uniform vec2 expected_pos[" MAX_NUM_SAMPLES_STR "];\n"
>   		"out vec4 out_color;\n"
>   		"void main()\n"
>   		"{\n"
>


Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list