[Piglit] [PATCH] arb_gpu_shader5: add a very basic gl_SampleMaskIn test

Chris Forbes chrisf at ijw.co.nz
Wed Jun 4 00:06:55 PDT 2014


This is a very helpful test for i965, since it turns out that master
crashes on my Ivybridge with this one with --enable-debug :)

shader_runner: brw_fs_visitor.cpp:192: virtual void
fs_visitor::visit(ir_dereference_array*): Assertion `src.file ==
UNIFORM || src.file == GRF' failed.


On Mon, Jun 2, 2014 at 9:14 AM, Chris Forbes <chrisf at ijw.co.nz> wrote:
> Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
>
> On Fri, May 30, 2014 at 2:56 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> Just ensures that without any MS set up, the coverage mask is 1.
>>
>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>> ---
>>
>> Silly test, but was enough for me to trace what the blob did with it. As there
>> are no other gl_SampleMaskIn tests, perhaps this is better than nothing?
>>
>>  .../execution/samplemaskin-basic.shader_test       | 24 ++++++++++++++++++++++
>>  1 file changed, 24 insertions(+)
>>  create mode 100644 tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test
>>
>> diff --git a/tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test b/tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test
>> new file mode 100644
>> index 0000000..a5fb2c5
>> --- /dev/null
>> +++ b/tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test
>> @@ -0,0 +1,24 @@
>> +[require]
>> +GLSL >= 1.50
>> +GL_ARB_gpu_shader5
>> +
>> +[vertex shader passthrough]
>> +
>> +[fragment shader]
>> +#extension GL_ARB_gpu_shader5 : enable
>> +
>> +out vec4 color;
>> +
>> +void main()
>> +{
>> +       color = vec4(1.0, 0.0, 0.0, 1.0);
>> +
>> +       /* No MS set up, should just be the current fragment. */
>> +       if (gl_SampleMaskIn[0] == 1) {
>> +               color.rg = vec2(0.0, 1.0);
>> +       }
>> +}
>> +
>> +[test]
>> +draw rect -1 -1 2 2
>> +probe all rgba 0.0 1.0 0.0 1.0
>> --
>> 1.8.5.5
>>
>> _______________________________________________
>> Piglit mailing list
>> Piglit at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list