[Piglit] [PATCH 2/6] ARB_sample_shading: Add test to verify the functionality of gl_NumSamples

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/all.tests| 7 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-num-samples.cpp | 228 + 3 files changed, 236 insertions(+) create mode 100644 tests

[Piglit] [PATCH 1/6] ARB_sample_shading: Add test to verify new APIs and enums

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/all.tests| 5 ++ tests/spec/CMakeLists.txt | 1 + tests/spec/arb_sample_shading/CMakeLists.txt | 1 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 14 + .../arb_sample_shading

[Piglit] [PATCH 3/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleID

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/all.tests| 6 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-sample-id.cpp | 239 + 3 files changed, 246 insertions(+) create mode 100644 tests

[Piglit] [PATCH 5/6] ARB_sample_shading: Add test to verify the functionality of gl_SamplePosition

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/all.tests| 6 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-sample-position.cpp | 240 + 3 files changed, 247 insertions(+) create mode 100644 tests

[Piglit] [PATCH 6/6] ARB_sample_shading: Add compiler tests for new builtins

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/all.tests | 4 tests/spec/arb_sample_shading/compiler/gl_NumSamples.frag | 12 tests/spec/arb_sample_shading/compiler/gl_SampleID.frag | 12 tests/spec/arb_sample_shading

[Piglit] [PATCH 4/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleMask[]

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/all.tests| 6 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-sample-mask.cpp | 245 + 3 files changed, 252 insertions(+) create mode 100644 tests

Re: [Piglit] [PATCH 5/6] ARB_sample_shading: Add test to verify the functionality of gl_SamplePosition

2013-10-14 Thread Anuj Phogat
, Oct 15, 2013 at 6:19 AM, Anuj Phogat wrote: >> Signed-off-by: Anuj Phogat >> --- >> tests/all.tests| 6 + >> .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + >> .../execution/builtin-gl-sample-position.cpp | 240

Re: [Piglit] [PATCH 2/6] ARB_sample_shading: Add test to verify the functionality of gl_NumSamples

2013-10-14 Thread Anuj Phogat
On Mon, Oct 14, 2013 at 12:35 PM, Chris Forbes wrote: > The projection seems spurious. Just set gl_Position = vec4(pos, 0.0, > 1.0) in your VS and lose the matrix and supporting machinery? I'll get rid of projection matrix. > > On Tue, Oct 15, 2013 at 6:19 AM, Anuj Phogat wro

[Piglit] [PATCH V2 2/6] ARB_sample_shading: Add test to verify the functionality of gl_NumSamples

2013-10-25 Thread Anuj Phogat
V2: Get rid of redundant projection matrix. Signed-off-by: Anuj Phogat --- tests/all.tests| 6 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-num-samples.cpp | 220 + 3 files changed, 227

[Piglit] [PATCH V2 1/6] ARB_sample_shading: Add test to verify new functions and enums

2013-10-25 Thread Anuj Phogat
Tests basic functionality of function: MinSampleShadingARB() and enums: SAMPLE_SHADING_ARB MIN_SAMPLE_SHADING_VALUE_ARB Signed-off-by: Anuj Phogat --- tests/all.tests| 5 ++ tests/spec/CMakeLists.txt | 1 + tests/spec

[Piglit] [PATCH V2 3/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleID

2013-10-25 Thread Anuj Phogat
V2: Get rid of redundant projection matrix. Signed-off-by: Anuj Phogat --- tests/all.tests| 5 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-sample-id.cpp | 230 + 3 files changed, 236

[Piglit] [PATCH V2 4/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleMask[]

2013-10-25 Thread Anuj Phogat
V2: Get rid of redundant projection matrix. Signed-off-by: Anuj Phogat --- tests/all.tests| 5 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl-sample-mask.cpp | 236 + 3 files changed, 242

[Piglit] [PATCH V2 6/6] ARB_sample_shading: Add compiler tests for new builtins

2013-10-25 Thread Anuj Phogat
Tests gl_SamplePosition, gl_SampleID, gl_NumSamples, gl_SampleMask[] Signed-off-by: Anuj Phogat --- tests/all.tests | 4 tests/spec/arb_sample_shading/compiler/gl_NumSamples.frag | 12 tests/spec

[Piglit] [PATCH V2 5/6] ARB_sample_shading: Add test to verify the functionality of gl_SamplePosition

2013-10-25 Thread Anuj Phogat
V2: Use better technique to verify sample positions in fragment shader. Get rid of redundant projection matrix. Signed-off-by: Anuj Phogat --- tests/all.tests| 5 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/builtin-gl

Re: [Piglit] [PATCH 3/3] Test MSAA-to-MSAA blits in GL_LINEAR filter mode.

2013-10-28 Thread Anuj Phogat
40,7 @@ piglit_display() > glBindFramebuffer(GL_DRAW_FRAMEBUFFER, dst_fbo.handle); > glBlitFramebuffer(0, 0, pattern_width, pattern_height, > 0, 0, pattern_width, pattern_height, > - buffer_to_test, GL_NEAREST); > + buffer_to_test, filter_mode); > > /* If necessary, manifest the depth/stencil image in dst_fbo > * into a color image. This ensures that the blit that > -- > 1.8.4.1 > Thanks for adding these tests Paul. This series is: Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH V2 3/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleID

2013-11-01 Thread Anuj Phogat
On Tue, Oct 29, 2013 at 8:01 AM, Paul Berry wrote: > On 25 October 2013 16:49, Anuj Phogat wrote: > >> V2: Get rid of redundant projection matrix. >> Signed-off-by: Anuj Phogat >> --- >> tests/all.tests| 5 + >&g

Re: [Piglit] [PATCH V2 2/6] ARB_sample_shading: Add test to verify the functionality of gl_NumSamples

2013-11-04 Thread Anuj Phogat
On Sat, Oct 26, 2013 at 11:37 AM, Chris Forbes wrote: > On Sat, Oct 26, 2013 at 12:49 PM, Anuj Phogat > wrote: > > V2: Get rid of redundant projection matrix. > > Signed-off-by: Anuj Phogat > > --- > > tests/all.tests| 6

[Piglit] [PATCH V3 3/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleID

2013-11-06 Thread Anuj Phogat
V2: Get rid of redundant projection matrix. V3: Draw to a multisample texture and use it later to verify the expected color of each sample. Use piglit_draw_rect() and get rid of redundant code. Signed-off-by: Anuj Phogat --- tests/all.tests| 5

[Piglit] [PATCH V3 4/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleMask[]

2013-11-06 Thread Anuj Phogat
V2: Get rid of redundant projection matrix. V3: Draw to a multisample texture and use it later to verify the expected color of each sample. Use piglit_draw_rect() and get rid of redundant code. Signed-off-by: Anuj Phogat --- tests/all.tests| 5

Re: [Piglit] [PATCH] arb_gpu_shader5: add compiler tests for interpolateAt*

2013-11-11 Thread Anuj Phogat
vec2(-0.5, 0.5); > + > +void main() > +{ > + vec4 res = vec4(0); > + > + res += vec4(interpolateAtOffset(v1, offset), 1, 1, 1); > + res += vec4(interpolateAtOffset(v2, offset), 1, 1); > + res += vec4(interpolateAtOffset(v3, offset), 1); > + res += interpolateAtOffset(v4, offset); > + > + gl_FragColor = res; > +} > diff --git > a/tests/spec/arb_gpu_shader5/compiler/interpolation/fs-interpolateAtSample.frag > > b/tests/spec/arb_gpu_shader5/compiler/interpolation/fs-interpolateAtSample.frag > new file mode 100644 > index 000..825b961 > --- /dev/null > +++ > b/tests/spec/arb_gpu_shader5/compiler/interpolation/fs-interpolateAtSample.frag > @@ -0,0 +1,25 @@ > +// [config] > +// expect_result: pass > +// glsl_version: 1.50 > +// require_extensions: GL_ARB_gpu_shader5 > +// [end config] > + > +#version 150 > +#extension GL_ARB_gpu_shader5: require > + > +in float v1; > +in vec2 v2; > +in vec3 v3; > +in vec4 v4; > + > +void main() > +{ > + vec4 res = vec4(0); > + > + res += vec4(interpolateAtSample(v1, 0), 1, 1, 1); > + res += vec4(interpolateAtSample(v2, 1), 1, 1); > + res += vec4(interpolateAtSample(v3, 2), 1); > + res += interpolateAtSample(v4, 3); > + > + gl_FragColor = res; > +} > -- > 1.8.4.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] Fix improperly-named geometry shader tests.

2013-11-12 Thread Anuj Phogat
> - > 'glsl-1.50-geometry-tri-strip-ordering-with-prim-restart {0} {1}'.format( > -prim_type, restart_index)) > +cmdline = 'tri-strip-ordering-with-prim-restart {0} {1}'.format( > +prim_type, restart_index) > +spec['glsl-1.50']['execution']['geometry'][cmdline] = \ > +concurrent_test('glsl-1.50-geometry-' + cmdline) > > for input_layout in ['points', 'lines', 'lines_adjacency', 'triangles', > 'triangles_adjacency', 'line_strip', > 'triangle_strip']: > -- > 1.8.4.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] GL: Verify that when GL_COORD_REPLACE is set, fragment shader texture coordinates do not get eliminated.

2013-11-12 Thread Anuj Phogat
GL_UNSIGNED_INT, NULL); > + > + for (y = 0; y < ptSize; y++) { > + for (x = 0; x < ptSize; x++) { > + float test[] = {(2 * x + 1) / (float)(ptSize * 2), > + 1 - ((2 * y + 1) / (float)(ptS

Re: [Piglit] [PATCH] GL: Verify that when GL_COORD_REPLACE is set, fragment shader texture coordinates do not get eliminated.

2013-11-12 Thread Anuj Phogat
On Tue, Nov 12, 2013 at 12:36 PM, Anuj Phogat wrote: > On Mon, Nov 11, 2013 at 11:44 AM, Nicholas Mack wrote: >> --- >> tests/all.tests| 2 +- >> tests/spec/gl-3.2/CMakeLists.gl.txt| 3 +- >> ...oord-replac

Re: [Piglit] [PATCH] Test that all layered framebuffer attachments must be of the same type.

2013-11-25 Thread Anuj Phogat
0 /* level */); > + fbstatus = glCheckFramebufferStatus(GL_FRAMEBUFFER); > + if (fbstatus != GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS) { > + printf("Expected GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS, got > " > + "%s\n", piglit_get_gl_enum_name(fbstatus)); > + piglit_report_result(PIGLIT_FAIL); > + } > + piglit_report_result(PIGLIT_PASS); > +} > + > + > +enum piglit_result > +piglit_display(void) > +{ > + /* Should never be reached */ > + return PIGLIT_FAIL; > +} > -- > 1.8.4.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] Test a geometry shader that does an item-by-item copy of gl_ClipDistance.

2013-11-26 Thread Anuj Phogat
> +enable GL_CLIP_PLANE0 > +enable GL_CLIP_PLANE1 > +enable GL_CLIP_PLANE2 > +enable GL_CLIP_PLANE3 > +enable GL_CLIP_PLANE4 > +enable GL_CLIP_PLANE5 > +enable GL_CLIP_PLANE6 > +enable GL_CLIP_PLANE7 > +draw arrays GL_TRIANGLE_FAN 0 4 > +probe all rgba 0.0 1.0 0.0 1.0 > -- > 1.8.4.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Test crashes with Mesa master due to an assertion failure. Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] arb_viewport_array: Only specify 150 for shader version

2013-11-26 Thread Anuj Phogat
r *gsSource = { > - "#version 410\n" > + "#version 150\n" > + "#extension GL_ARB_viewport_array : enable\n" > "layout(triangles) in;\n" > "layout(triangle_strip, max_vertices = 3) out;\n" > "uniform int idx;\n" > @@ -73,7 +74,7 @@ const char *gsSource = { > }; > > const char *fsSource = { > - "#version 410\n" > + "#version 150\n" > "uniform vec3 color;\n" > "void main() {\n" > " gl_FragColor = vec4(color.xyz, 1.0);\n" > -- > 1.8.4.3 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Also add piglit_require_GLSL_version(150) in piglit_init(). With above change this patch is: Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] GL3.3: Test invalid parameters for GL_ARB_texture_rectangle.

2013-11-26 Thread Anuj Phogat
On Mon, Nov 25, 2013 at 2:06 PM, Nicholas Mack wrote: > v2: Move test into arb_texture_rectangle folder and change context > --- > tests/all.tests| 1 + > tests/spec/arb_texture_rectangle/CMakeLists.gl.txt | 1 + > .../texture-base-level-error.c

Re: [Piglit] [PATCH 1/2] Test that VertexAttribDivisor() generates INVALID_VALUE if index is greater than or equal to MAX_VERTEX_ATTRIBS.

2013-11-26 Thread Anuj Phogat
; + > +void > +piglit_init(int argc, char **argv) > +{ > + bool pass = true; > + > + glVertexAttribDivisor(GL_MAX_VERTEX_ATTRIBS, 0); > + pass = piglit_check_gl_error(GL_INVALID_VALUE) && pass; > + > + piglit_report_result(pass ? PIGLI

Re: [Piglit] [PATCH] arb_viewport_array: Only specify 150 for shader version

2013-11-26 Thread Anuj Phogat
On Tue, Nov 26, 2013 at 2:56 PM, Jordan Justen wrote: > On Tue, Nov 26, 2013 at 10:49 AM, Anuj Phogat wrote: >> On Tue, Nov 26, 2013 at 8:57 AM, Jordan Justen >> wrote: >>> These tests are expected to run with OpenGL 3.2, so >>> we should only use #version 15

Re: [Piglit] [PATCH] GL3.3: Test invalid parameters for GL_ARB_texture_rectangle.

2013-12-02 Thread Anuj Phogat
The error INVALID_VALUE is generated if > +* TEXTURE_BASE_LEVEL is set to any value other than zero > +*/ > + glTexParameteri(GL_TEXTURE_RECTANGLE, GL_TEXTURE_BASE_LEVEL, 37); > + pass = piglit_check_gl_error(GL_INVALID_VALUE) && pass; > + > + piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); > +} > + > +enum piglit_result > +piglit_display(void) > +{ > + /* UNREACHED */ > + return PIGLIT_FAIL; > +} > -- > 1.8.3.1 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH V3 4/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleMask[]

2013-12-09 Thread Anuj Phogat
On Mon, Dec 9, 2013 at 10:02 AM, Paul Berry wrote: > On 6 November 2013 17:24, Anuj Phogat wrote: > >> V2: Get rid of redundant projection matrix. >> V3: Draw to a multisample texture and use it later to verify >> the expected color of each sample. >> Use

Re: [Piglit] [PATCH V3 3/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleID

2013-12-09 Thread Anuj Phogat
On Fri, Dec 6, 2013 at 3:04 PM, Paul Berry wrote: > > On 6 November 2013 17:20, Anuj Phogat wrote: >> >> V2: Get rid of redundant projection matrix. >> V3: Draw to a multisample texture and use it later to verify >> the expected color of each sample. >>

Re: [Piglit] [PATCH V3 4/6] ARB_sample_shading: Add test to verify the functionality of gl_SampleMask[]

2013-12-09 Thread Anuj Phogat
On Mon, Dec 9, 2013 at 6:47 PM, Paul Berry wrote: > On 9 December 2013 18:42, Anuj Phogat wrote: >> >> >> >> >> On Mon, Dec 9, 2013 at 10:02 AM, Paul Berry >> wrote: >>> >>> On 6 November 2013 17:24, Anuj Phogat

[Piglit] [PATCH] Add tests/gl33conform.tests to run GTF for khronos OpenGL CTS

2013-12-09 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/gl33conform.tests | 81 + 1 file changed, 81 insertions(+) create mode 100644 tests/gl33conform.tests diff --git a/tests/gl33conform.tests b/tests/gl33conform.tests new file mode 100644 index 000..9a8bd92

[Piglit] [PATCH] Use piglit_vertex to properly interface with piglit_draw_rect()

2013-12-10 Thread Anuj Phogat
Also, use piglit_link_simple_program(). It ensures that piglit_vertex gets assigned to the proper attribute slot. This patch fixes these tests currently failing on mesa. Signed-off-by: Anuj Phogat --- .../arb_sample_shading/execution/builtin-gl-num-samples.cpp | 12 +--- .../execution

[Piglit] [PATCH 2/4] Use integer texture to simplify the test

2013-12-17 Thread Anuj Phogat
Also, case of non-multisample color buffer is not handled correctly in the test. Move it inside the shader program. Signed-off-by: Anuj Phogat --- .../execution/builtin-gl-sample-id.cpp | 69 +++--- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a

[Piglit] [PATCH 1/4] Add variable color_format to configure non-multisample fbo

2013-12-17 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/util/piglit-fbo.cpp | 3 ++- tests/util/piglit-fbo.h | 8 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/util/piglit-fbo.cpp b/tests/util/piglit-fbo.cpp index 138b5d3..a85d19d 100644 --- a/tests/util/piglit-fbo.cpp +++ b/tests

[Piglit] [PATCH 3/4] builtin-gl-sample-id: Add testing for fbo with renderbuffer attachment

2013-12-17 Thread Anuj Phogat
Existing test only covers the drawing to texture attachment with a sample mask. This patch extends the test to include drawing to renderbuffer attachment. This might help capture the bugs where drawing to a texture differ from drawing to a renderbuffer. Signed-off-by: Anuj Phogat

[Piglit] [PATCH 4/4] builtin-gl-sample-mask: Add testing for fbo with renderbuffer attachment

2013-12-17 Thread Anuj Phogat
Existing test only covers the drawing to texture attachment with a sample mask. This patch extends the test to include drawing to renderbuffer attachment. This might help capture the bugs where drawing to a texture differ from drawing to a renderbuffer. Signed-off-by: Anuj Phogat

Re: [Piglit] [PATCH 2/2] sample-mask-execution: resolve into fbo always

2013-12-17 Thread Anuj Phogat
UFFER, GL_COLOR_ATTACHMENT0, > + GL_RENDERBUFFER, ss_tex); > } > -- > 1.8.4.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Irrespective of what you decide about suggested changes, both the patches are: Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] copyteximage: Don't use fixed-function for array textures

2013-12-18 Thread Anuj Phogat
break; > } > > - glDisable(target); > + /* If a GLSL program is in use, then the preceeding code should not > +* have called glEnable(target). In that case, this code should not > +* disable it. For some targets, like GL_TEXTURE_1D_ARRAY, > +* glDisable(target) will generate an error. > +*/ > + if (prog == 0) > + glDisable(target); > + else > + glUseProgram(0); > > return pass; > } > -- > 1.8.1.4 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] arb_gpu_shader5: add some compiler/linker tests for sample qualifier

2013-12-18 Thread Anuj Phogat
gt; index 000..5711394 > --- /dev/null > +++ b/tests/spec/arb_gpu_shader5/linker/sample-qualifier-vs-fs.shader_test > @@ -0,0 +1,31 @@ > +# Tests that variables in the vertex shader can be qualified with 'sample > out' > +# and link against variables in the fragment shader qualified with 'sample > in' > + > +[require] > +GLSL >= 1.50 > +GL_ARB_gpu_shader5 > + > +[vertex shader] > + > +#version 150 > +#extension GL_ARB_gpu_shader5: require > + > +sample out vec4 per_sample_color; > + > +void main() { > + per_sample_color = vec4(1); > +} > + > +[fragment shader] > + > +#version 150 > +#extension GL_ARB_gpu_shader5: require > + > +sample in vec4 per_sample_color; > + > +void main() { > + gl_FragColor = per_sample_color; > +} > + > +[test] link success ? > + > -- > 1.8.4.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit With above changes made, this patch is: Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] Add test to verify interpolation at sample position

2014-01-09 Thread Anuj Phogat
965: Use sample barycentric coordinates with per sample shading'. Signed-off-by: Anuj Phogat Cc: Chris Forbes --- Thanks Chris for pointing to a reference test which I used to create this test. tests/all.tests| 5 + .../arb_sample_shading/execution/CMa

Re: [Piglit] [PATCH] Add test to verify interpolation at sample position

2014-01-13 Thread Anuj Phogat
On Thu, Jan 9, 2014 at 3:43 PM, Anuj Phogat wrote: > ARB_sample_shading extension says: > "When the sample shading fraction is 1.0, a separate set of colors > and other associated data are evaluated for each sample, each set > of values are evaluated at the sample location.

[Piglit] [PATCH 1/2] Add test to verify 'centroid' qualifier is ignored in case of persample shading

2014-01-17 Thread Anuj Phogat
27;s location. Signed-off-by: Anuj Phogat Cc: Chris Forbes --- tests/all.py | 5 + .../arb_sample_shading/execution/CMakeLists.gl.txt | 1 + .../execution/ignore-centroid-qualifier.cpp| 199 + 3 files changed, 205 insertions(

Re: [Piglit] [PATCH 2/2] arb_gpu_shader5: add invocation-id-basic.shader_test

2014-01-21 Thread Anuj Phogat
+void main() > +{ > + gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0); > +} > + > +[test] > +clear color 0.0 0.0 0.0 0.0 > +clear > +draw arrays GL_POINTS 0 1 > +probe all rgba 0.0 1.0 0.0 1.0 > -- > 1.8.5.3 > > _

Re: [Piglit] [PATCH 04/12] Test compilation rules related to compute shader layout qualifiers.

2014-01-22 Thread Anuj Phogat
On Thu, Jan 9, 2014 at 10:59 AM, Paul Berry wrote: > --- > .../compiler/default_local_size.comp | 39 > ++ > .../compiler/mismatched_local_size.comp| 21 > .../compiler/negative_local_size.comp | 26 +++ > .../co

Re: [Piglit] [PATCH 01/12] glapi: Rename ARB_compute_shader "LOCAL" -> "WORK_GROUP".

2014-01-22 Thread Anuj Phogat
Y_COMPUTE_SHADER = 0x90ED > DISPATCH_INDIRECT_BUFFER = 0x90EE > -- > 1.8.5.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit This series is: Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH V2] Add test to verify 'centroid' qualifier is ignored in case of persample shading

2014-01-23 Thread Anuj Phogat
27;in' variable with the 'centroid' qualifier. Another test already covers the interpolation of 'in' variable without any 'qualifier'. This change also captures the mesa bug reported on i965 driver: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73915 S

Re: [Piglit] [PATCH 3/7] glsl-1.50: invalid GS input layout qualifiers

2014-01-24 Thread Anuj Phogat
On Thu, Jan 23, 2014 at 11:55 PM, Jordan Justen wrote: > Signed-off-by: Jordan Justen > --- > .../incorrect-in-layout-qualifier-column_major.geom | 20 > > .../incorrect-in-layout-qualifier-max_vertices.geom | 20 > > .../incorrect-in-layout-qualifie

Re: [Piglit] [PATCH 1/7] arb_gpu_shader5/invocation-id-basic: use signed int

2014-01-24 Thread Anuj Phogat
> Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit This series is Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH V2] Add test to verify 'centroid' qualifier is ignored in case of persample shading

2014-01-27 Thread Anuj Phogat
On Mon, Jan 27, 2014 at 10:34 AM, Paul Berry wrote: > On 23 January 2014 15:56, Anuj Phogat wrote: >> >> Here is what it tests: >> Enable sample shading for the whole fragment shader using OpenGL API >> glEnable(GL_SAMPLE_SHADING); >> glMinSampleShading(1.0); &

Re: [Piglit] [PATCH] Test that scalar ops in different BBs aren't combined.

2014-01-27 Thread Anuj Phogat
+ > +[test] > +uniform float x 3.0 > +uniform float y 3.0 > +uniform vec2 v 0.25 0.25 > +draw rect -1 -1 2 2 > +probe all rgba 0.25 0 0 1 > -- > 1.8.3.2 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] glslparsertest: Support geometry and compute shader in {compile, link} status

2014-01-29 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/glslparsertest/glslparsertest.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/tests/glslparsertest/glslparsertest.c b/tests/glslparsertest/glslparsertest.c index 5957144..18bd062 100644 --- a/tests/glslparsertest

Re: [Piglit] [PATCH] arb_gpu_shader5: test setting the invocations count in a separate GS

2014-01-31 Thread Anuj Phogat
> +[fragment shader] > +#version 150 > + > +void main() > +{ > + gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0); > +} > + > +[test] > +clear color 0.0 0.0 0.0 0.0 > +clear > +draw arrays GL_POINTS 0 1 > +probe all rgba 0.0 1.0 0.0 1.0 > -- > 1.8.5.3 > > _

[Piglit] [PATCH 1/2] glsl-1.50: Add shader tests to verify gl_FragCoord layout qualifiers

2014-02-10 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- ...ayout-qualifiers-conflicting-case-1.shader_test | 47 + ...ayout-qualifiers-conflicting-case-2.shader_test | 59 + ...ayout-qualifiers-conflicting-case-3.shader_test | 58 + ...ayout-qualifiers-conflicting

[Piglit] [PATCH 2/2] glsl-1.50: Add copiler tests to verify gl_FragCoord layout qualifiers

2014-02-10 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- .../layout-qualifiers-conflicting-case-1.frag | 37 ++ .../layout-qualifiers-conflicting-case-2.frag | 37 ++ .../layout-qualifiers-matching.frag| 37 ++ 3 files changed, 111

Re: [Piglit] [PATCH 2/2] glsl-1.50: Add copiler tests to verify gl_FragCoord layout qualifiers

2014-02-11 Thread Anuj Phogat
On Mon, Feb 10, 2014 at 6:42 PM, Ian Romanick wrote: > I think you mean "compiler" in the subject. :) > yeah. "copiler" is still too futuristic :) > > On 02/10/2014 06:15 PM, Anuj Phogat wrote: > > Signed-off-by: Anuj Phogat > > --- > > .../l

[Piglit] [PATCH 2/2] arb_gpu_shader5: Add compiler tests to verify 'invocations' layout qualifier

2014-02-12 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- ...rect-multiple-layout-qualifier-invocations.geom | 23 ++ ...rect-multiple-layout-qualifier-invocations.geom | 23 ++ 2 files changed, 46 insertions(+) create mode 100644 tests/spec/arb_gpu_shader5/compiler/correct

[Piglit] [PATCH 1/2] arb_gpu_shader5: Add shader tests to verify 'invocations' layout qualifier

2014-02-12 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- .../execution/invocations-conflicting.shader_test | 47 ++ .../execution/invocations-matching.shader_test | 46 + 2 files changed, 93 insertions(+) create mode 100644 tests/spec/arb_gpu_shader5/execution/invocations

Re: [Piglit] [PATCH 2/2] glsl-1.50: Add copiler tests to verify gl_FragCoord layout qualifiers

2014-02-13 Thread Anuj Phogat
On Tue, Feb 11, 2014 at 11:07 AM, Anuj Phogat wrote: > > > > On Mon, Feb 10, 2014 at 6:42 PM, Ian Romanick wrote: >> >> I think you mean "compiler" in the subject. :) > > yeah. "copiler" is still too futuristic :) >> >> >>

Re: [Piglit] [PATCH 2/2] glsl-1.50: Add copiler tests to verify gl_FragCoord layout qualifiers

2014-02-18 Thread Anuj Phogat
On Thu, Feb 13, 2014 at 5:52 PM, Anuj Phogat wrote: > > On Tue, Feb 11, 2014 at 11:07 AM, Anuj Phogat wrote: > > > > > > > > On Mon, Feb 10, 2014 at 6:42 PM, Ian Romanick wrote: > >> > >> I think you mean "compiler" in the s

Re: [Piglit] [PATCH 2/2] glsl-1.50: Add copiler tests to verify gl_FragCoord layout qualifiers

2014-02-19 Thread Anuj Phogat
On Tue, Feb 18, 2014 at 3:31 PM, Ian Romanick wrote: > On 02/18/2014 03:17 PM, Anuj Phogat wrote: >> On Thu, Feb 13, 2014 at 5:52 PM, Anuj Phogat wrote: >>> >>> On Tue, Feb 11, 2014 at 11:07 AM, Anuj Phogat wrote: >>>> >>>> >>>

[Piglit] [PATCH 2/2] glsl-1.50: Add shader tests to verify gl_FragCoord redeclarations

2014-02-25 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- ...ayout-qualifiers-conflicting-case-5.shader_test | 63 ++ ...ayout-qualifiers-conflicting-case-6.shader_test | 62 + ...ayout-qualifiers-conflicting-case-7.shader_test | 50 + 3 files changed, 175 insertions

[Piglit] [PATCH 1/2] glsl-1.50: Add compiler tests to verify gl_FragCoord redeclarations

2014-02-25 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- .../layout-qualifiers-conflicting-case-3.frag | 38 + .../layout-qualifiers-conflicting-case-4.frag | 39 ++ .../layout-qualifiers-conflicting-case-5.frag | 39 ++ .../layout-qualifiers

Re: [Piglit] [RESEND][PATCH 1/2] GL 3.2: Use standard internalformat when testing FramebufferTexture

2014-03-04 Thread Anuj Phogat
; > > pass = piglit_check_gl_error(GL_NO_ERROR) && pass; > > -- > 1.9.0 > > ___ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Both the patches are: Reviewed-b

[Piglit] [PATCH V2 2/2] glsl-1.50: Add shader tests to verify gl_FragCoord redeclarations

2014-03-06 Thread Anuj Phogat
V2: Add few more shader tests and do minor changes in tests added in V1. Signed-off-by: Anuj Phogat --- ...ayout-qualifiers-conflicting-case-5.shader_test | 62 ++ ...ayout-qualifiers-conflicting-case-6.shader_test | 61 + ...ayout-qualifiers-conflicting

[Piglit] [PATCH 2/2] Add compiler tests for overlapping attribute locations

2014-03-10 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- .../compiler/overlapping-attrib-locations-1.vert | 28 ++ .../compiler/overlapping-attrib-locations-2.vert | 28 ++ 2 files changed, 56 insertions(+) create mode 100644 tests/spec/arb_explicit_attrib_location/1.10

[Piglit] [PATCH 1/2] Add test to verify overlapping locations of vertex input attributes

2014-03-10 Thread Anuj Phogat
It is possible for an application to bind more than one attribute name to the same location. This is referred to as aliasing. It is allowed in: OpenGL 2.0 (and above) and OpenGL ES 2.0. This test varifies that aliasing can be used successfully in a vertex shader. Signed-off-by: Anuj Phogat

Re: [Piglit] genmipmap-errors test

2014-03-10 Thread Anuj Phogat
Brian, Today I came across this unread email from you. I missed it somehow. I'm not sure if this information is still relevant but here is what I have found: Testing GL_INVALID_OPERATION for integer and depth/stencil texture formats is based on a mesa commit: http://lists.freedesktop.org/archive

[Piglit] [PATCH 1/2] teximage-errors: Run all the tests before returning result

2014-03-11 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/texturing/teximage-errors.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/texturing/teximage-errors.c b/tests/texturing/teximage-errors.c index 221007f..39b7e9b 100644 --- a/tests/texturing/teximage-errors.c +++ b/tests

[Piglit] [PATCH 2/2] teximage-errors: Test the combinations of depth and depth-stencil formats

2014-03-11 Thread Anuj Phogat
This patch is to verify a bug fix in mesa commit 079bff5. This commit allowed GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL combinations in glTexImage{123}D functions. Signed-off-by: Anuj Phogat --- tests/texturing/teximage-errors.c | 73 ++- 1 file changed, 72

Re: [Piglit] [PATCH 2/2] teximage-errors: Test the combinations of depth and depth-stencil formats

2014-03-12 Thread Anuj Phogat
On Wed, Mar 12, 2014 at 4:20 AM, Ken Phillis Jr wrote: > The patch looks like it has a major problem. > Do you have any objections to the changes made in this patch? > Mesa does not support OpenGL 3.x compatibility profile. This test is > currently only using a compatibility profile. I would sugg

Re: [Piglit] [PATCH 2/2] teximage-errors: Test the combinations of depth and depth-stencil formats

2014-03-12 Thread Anuj Phogat
On Wed, Mar 12, 2014 at 6:24 AM, Brian Paul wrote: > On 03/11/2014 06:51 PM, Anuj Phogat wrote: > >> This patch is to verify a bug fix in mesa commit 079bff5. This commit >> allowed GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL combinations in >> glTexImage{123}D functions. &

[Piglit] [PATCH] teximage-errors: Make changes to support core profile

2014-03-12 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- tests/texturing/teximage-errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/texturing/teximage-errors.c b/tests/texturing/teximage-errors.c index 30b7875..1198514 100644 --- a/tests/texturing/teximage-errors.c +++ b/tests/texturing

Re: [Piglit] [PATCH 1/7] ARB_explicit_uniform_location: test for uniform location boundary values

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt | 1 + > .../arb_explicit_uniform_location/loc-minmax.c | 107 > +

Re: [Piglit] [PATCH 2/7] ARB_explicit_uniform_location: test sequential array elements

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt | 1 + > .../arb_explicit_uniform_location/array-elements.c | 107 > +

Re: [Piglit] [PATCH 3/7] ARB_explicit_uniform_location: test too big uniform array size

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > Tests that array fits in to the boundaries of defined by the spec. > > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt | 1 + > .../arb_ex

Re: [Piglit] [PATCH 4/7] ARB_explicit_uniform_location: test overlapping location within array

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt | 1 + > .../arb_explicit_uniform_location/array-overlap.c | 98 > ++ >

Re: [Piglit] [PATCH 5/7] ARB_explicit_uniform_location: test overlapping locations

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > This test tests overlapping uniform locations across shader stages. > > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt | 1 + > .../arb_exp

Re: [Piglit] [PATCH 5/7] ARB_explicit_uniform_location: test overlapping locations

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > This test tests overlapping uniform locations across shader stages. > > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt | 1 + > .../arb_exp

Re: [Piglit] [PATCH 6/7] ARB_explicit_uniform_location: test setting explicit location twice

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > This test sets different explicit location for same uniform from > different shader stage. > > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt

Re: [Piglit] [PATCH 7/7] ARB_explicit_uniform_location: set location once but decl twice

2014-03-13 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 5:41 AM, Tapani Pälli wrote: > This test sets explicit location in vertex shader but does not set it > for same uniform in the fragment shader. > > Signed-off-by: Tapani Pälli > --- > tests/all.py | 1 + > .../CMakeLists.gl.txt

Re: [Piglit] [V2 1/8] ARB_explicit_uniform_location: test for uniform location boundary values

2014-03-14 Thread Anuj Phogat
;}"; >> + >> +void >> +piglit_init(int argc, char **argv) >> +{ >> + int maxloc; >> + GLuint prog; >> + >> + piglit_require_extension("GL_ARB_explicit_uniform_location"); >> + >> + glGetIntegerv(GL_MAX_UNIFORM_LOCATIONS, &maxloc); >> + >> + if (!piglit_check_gl_error(GL_NO_ERROR)) >> + piglit_report_result(PIGLIT_FAIL); >> + >> + char *f_sha; >> + >> + /* test GL_MAX_UNIFORM_LOCATIONS, 0, and a loc in between (1) */ >> + if (asprintf(&f_sha, fshader_main, maxloc, 0, 1) == -1) >> + piglit_report_result(PIGLIT_FAIL); >> + >> + prog = piglit_build_simple_program(v_sha, f_sha); >> + >> + free(f_sha); >> + >> + if (glGetUniformLocation(prog, "r") != maxloc) >> + piglit_report_result(PIGLIT_FAIL); >> + if (glGetUniformLocation(prog, "g") != 0) >> + piglit_report_result(PIGLIT_FAIL); >> + if (glGetUniformLocation(prog, "b") != 1) >> + piglit_report_result(PIGLIT_FAIL); >> + >> + glDeleteProgram(prog); >> + piglit_report_result(PIGLIT_PASS); >> +} >> > With comments from Ian and Topi fixed: Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [V2 2/8] ARB_explicit_uniform_location: test sequential array elements

2014-03-14 Thread Anuj Phogat
tion = 1) uniform float r;\n" >> + "layout(location = 2) uniform float g;\n" >> + "layout(location = 3) uniform float a[ARRAY_SIZE];\n" >> + "layout(location = 19) uniform float b;\n" >> + "void main() {\n" >> + "gl_FragCo

Re: [Piglit] [PATCH 1/4] fbo-blit-d24s8: avoid using textures

2014-03-15 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 9:07 AM, Ilia Mirkin wrote: > There's no reason to attach the teximages to the framebuffer. Instead > use renderbuffers so that we don't need to depend on ARB_depth_texture. > OpenGL driver may choose different blitting paths internally based on if the attachment is a rende

Re: [Piglit] [PATCH 4/4] readpixels-24_8: replace teximage use with renderbuffer

2014-03-15 Thread Anuj Phogat
On Thu, Mar 13, 2014 at 9:07 AM, Ilia Mirkin wrote: > This removes an implicit dependency on ARB_depth_texture (and is more > efficient). Same comments as in Patch 1/4. With a quick search I couldn't find different glReadPixels() internal paths in mesa. But other drivers might have. I would wait

Re: [Piglit] [V3 1/4] ARB_explicit_uniform_location: test overlapping location within array

2014-03-18 Thread Anuj Phogat
On Mon, Mar 17, 2014 at 6:04 AM, Tapani Pälli wrote: > v2: fix style issues (Anuj) > v3: change to be a shader-runner test (Ian) > > Signed-off-by: Tapani Pälli > --- > tests/all.py | 3 ++ > .../overlap-location-within-array.shader_test | 32 > ++

Re: [Piglit] [V3 4/4] ARB_explicit_uniform_location: set location once but decl twice

2014-03-18 Thread Anuj Phogat
On Mon, Mar 17, 2014 at 6:04 AM, Tapani Pälli wrote: > This test sets explicit location in vertex shader but does not set it > for same uniform in the fragment shader. > > v2: fix style issues (Anuj) > v3: change to be a shader-runner test (Ian) > It might be worth testing that same uniform locati

Re: [Piglit] [V3 0/4] more ARB_explicit_uniform_location tests

2014-03-18 Thread Anuj Phogat
_ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Made few suggestions for new tests. This series is: Reviewed-by : Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] ARB_explicit_uniform_location: test overlap location with unused uniform

2014-03-18 Thread Anuj Phogat
vertex; > +} > + > +[fragment shader] > +#extension GL_ARB_explicit_uniform_location: require > +layout(location = 127) uniform vec4 color; > +void main() > +{ > + gl_FragColor = color; > +} > + > +[test] > +link error > -- >

Re: [Piglit] [PATCH] fbo-tex-rgbx: test rendering to and texturing from an RGBx texture

2014-03-20 Thread Anuj Phogat
leteTextures(1, &tex); > + > + return pass; > +} > + > + > +void > +piglit_init(int argc, char **argv) > +{ > + piglit_require_extension("GL_ARB_framebuffer_object"); > + piglit_require_gl_version(20); > + > +

Re: [Piglit] [PATCH] ARB_explicit_uniform_location: fix a bug in boundaries test

2014-03-20 Thread Anuj Phogat
- 1, 0, 1) == -1) > piglit_report_result(PIGLIT_FAIL); > > prog = piglit_build_simple_program(vs_text, f_sha); > > free(f_sha); > > - if (glGetUniformLocation(prog, "r") != maxloc) > + if (glGetUniformLocation(prog, "r&

Re: [Piglit] [Patch V2] ARB_explicit_uniform_location: test inactive uniform interaction

2014-03-28 Thread Anuj Phogat
{\n" > + "gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);\n" > + "}"; > + > +void > +piglit_init(int argc, char **argv) > +{ > + GLuint prog; > + > + piglit_require_extension("GL_ARB_explicit_uniform_location"); > + > + prog = piglit_build_simple_program(vs_text, fs_text); > + > + glUseProgram(prog); > + > + /* verify that glUniform1f does not generate error */ > + glUniform1f(7, 0.1); > + > + if (!piglit_check_gl_error(GL_NO_ERROR)) > + piglit_report_result(PIGLIT_FAIL); > + > + glDeleteProgram(prog); > + piglit_report_result(PIGLIT_PASS); > +} > -- > 1.8.3.1 > Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] fbo-generatemipmap-formats: skip integer textures

2014-04-03 Thread Anuj Phogat
ternal_format, > basetype); > -- > 1.7.10.4 > > _______ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit Reviewed-by: Anuj Phogat ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 1/2] gl-2.0: Verify results of program validation when a conflicting sampler configuration is used.

2014-04-14 Thread Anuj Phogat
t_check_gl_error(GL_INVALID_OPERATION) && pass; > + > + /* Re-validate the program. > +*/ > + if (program_check_status(prog)) { > + fprintf(stderr, > + "Program was validated with conflicting " > + "sampler config

[Piglit] [PATCH] Add test to verify transform feedback values of few builtin variables

2014-04-14 Thread Anuj Phogat
Builtin variables tested are gl_Layer and gl_ViewportIndex. The test case verifies a bug fix in Intel's i965 drivers. It can be later extended to add testing for more builtin variables. Signed-off-by: Anuj Phogat --- Patch is also available on my 'review' branch at: https://git

Re: [Piglit] [PATCH] arb_fcc: Add another test for a gl_FragCoord redeclaration edge case

2014-04-15 Thread Anuj Phogat
On Sat, Apr 12, 2014 at 10:09 PM, Chris Forbes wrote: > Signed-off-by: Chris Forbes > --- > .../compiler/redeclaration-around-use.frag | 31 > ++ > 1 file changed, 31 insertions(+) > create mode 100644 > tests/spec/arb_fragment_coord_conventions/compiler/redeclarat

[Piglit] [PATCH] Add test to verify the values of gl_VertexID captured by transform feedback

2014-04-17 Thread Anuj Phogat
Test currently fails on Intel's open source linux drivers but passes on NVIDIA's proprietary linux drivers. Signed-off-by: Anuj Phogat --- Patch is also available on my 'review' branch at: https://github.com/aphogat/piglit.git tests/all.py

Re: [Piglit] [PATCH] Add test to verify the values of gl_VertexID captured by transform feedback

2014-04-17 Thread Anuj Phogat
On Thu, Apr 17, 2014 at 6:05 PM, Chris Forbes wrote: > You've got some broken indentation: > > chrisf@moose [piglit] (master=) $ pwclient git-am 24390 > Applying patch #24390 using 'git am' > Description: Add test to verify the values of gl_VertexID captured by > transform feedback > Applying: Add

  1   2   3   4   5   >