[Piglit] Building current piglit on ubuntu 12.04?

Ilia Mirkin imirkin at alum.mit.edu
Tue Sep 6 15:31:01 UTC 2016


On Tue, Sep 6, 2016 at 11:21 AM, Dan Kegel <dank at kegel.com> wrote:
> spec/arb_shader_texture_image_samples/compiler/fs-image-samples.frag: fail

Fail means what you think it does.

> spec/arb_gpu_shader5/execution/sampler_array_indexing/fs-simple-texture-size:
> incomplete

Incomplete means that the test started but never finished. I guess it
doesn't like sampler array indexing? This type of stuff definitely
*used* to work - I RE'd a lot of it by tracing the drivers.

> {"spec at arb_shader_texture_image_samples@compiler at fs-image-samples.frag":
> {"returncode": 1, "pid": 4954, "result": "fail", "subtests":
> {"__type__": "Subtests"}, "out": "Shader source:\n// [config]\n//
> expect_result: pass\n// glsl_version: 1.50\n// require_extensions:
> GL_ARB_shader_image_load_store GL_ARB_shader_texture_image_samples\n//
> [end config]\n\n#version 150\n#extension
> GL_ARB_shader_image_load_store: require\n#extension
> GL_ARB_shader_texture_image_samples: require\n\nwriteonly uniform
> image2DMS i2D;\nwriteonly uniform image2DMSArray i2DArray;\nwriteonly
> uniform iimage2DMS ii2D;\nwriteonly uniform iimage2DMSArray
> ii2DArray;\nwriteonly uniform uimage2DMS ui2D;\nwriteonly uniform
> uimage2DMSArray ui2DArray;\n\nvoid main()\n{\n\tint res = 0;\n\n\tres
> += imageSamples(i2D);\n\tres += imageSamples(i2DArray);\n\tres +=
> imageSamples(ii2D);\n\tres += imageSamples(ii2DArray);\n\tres +=
> imageSamples(ui2D);\n\tres +=
> imageSamples(ui2DArray);\n\n\tgl_FragColor =
> vec4(float(res));\n}\n\n", "dmesg": "", "exception": null, "err":
> "Failed to compile fragment shader
> /home/buildbot/src/piglit/tests/spec/arb_shader_texture_image_samples/compiler/fs-image-samples.frag:
> 0(24) : error C1115: unable to find compatible overloaded function
> \"imageSamples(struct iimage2DMS)\"\n0(25) : error C1115: unable to
> find compatible overloaded function \"imageSamples(struct
> iimage2DMSArray)\"

Well, that's clearly a pile of bs. GL_ARB_shader_texture_image_samples
adds imageSamples() for "gimage2DMSArray", which is a general type
that covers all the variants. From the GL_ARB_shader_image_load_store
spec, we have

"""
    Loads and stores support float, integer, and unsigned integer types. The
    data types "gimage*" serve as placeholders meaning either "image*",
    "iimage*", or "uimage*" in the same way as "gvec" or "gsampler".
"""

Cheers,

  -ilia


More information about the Piglit mailing list