zink/anv: regression on piglit.spec.arb_shader_texture_image_samples.compiler.fs-image-samples_frag
bisected to 90cf8d14
/tmp/build_root/m64/lib/piglit/bin/glslparsertest /tmp/build_root/m64/lib/piglit/tests/spec/arb_shader_texture_image_samples/compiler/fs-image-samples.frag pass 1.50 GL_ARB_shader_image_load_store GL_ARB_shader_texture_image_samples
Successfully compiled fragment shader /tmp/build_root/m64/lib/piglit/tests/spec/arb_shader_texture_image_samples/compiler/fs-image-samples.frag: (no compiler output)stderrNIR validation failed after strip_tex_ms in ../src/gallium/drivers/zink/zink_compiler.c
6 errors:
shader: MESA_SHADER_FRAGMENT
source_sha1: {0x5a9048a5, 0x88d2f465, 0xdb98a3e7, 0x3809933f, 0x3b3cb794}
name: GLSL2
internal: false
stage: 4
next_stage: 4
num_images: 6
outputs_written: 2
images_used: 0x00000000'0000003f
msaa_images: 0x00000000'0000003f
subgroup_size: 1
uses_resource_info_query: true
bit_sizes_float: 0x20
bit_sizes_int: 0x20
first_ubo_is_default_ubo: true
flrp_lowered: true
io_lowered: true
inputs: 0
outputs: 1
uniforms: 0
decl_var shader_out INTERP_MODE_NONE none vec4 gl_FragColor (FRAG_RESULT_COLOR.xyzw, 0, 0)
decl_var image INTERP_MODE_NONE readonly writeonly none image2D i2D (0, 0, 0)
decl_var image INTERP_MODE_NONE readonly writeonly none image2DArray i2DArray (1, 1, 1)
decl_var image INTERP_MODE_NONE readonly writeonly none iimage2D ii2D (2, 2, 2)
decl_var image INTERP_MODE_NONE readonly writeonly none iimage2DArray ii2DArray (3, 3, 3)
decl_var image INTERP_MODE_NONE readonly writeonly none uimage2D ui2D (4, 4, 4)
decl_var image INTERP_MODE_NONE readonly writeonly none uimage2DArray ui2DArray (5, 5, 5)
decl_var push_const INTERP_MODE_NONE none struct gfx_pushconst
decl_function main (0 params)impl main {
con block b0: // preds:
32 %0 = deref_var &i2D (image image2DMS)
error: instr->type == instr->var->type (../src/compiler/nir/nir_validate.c:317)32 %1 = @image_deref_samples (%0) (image_dim=2D-MSAA, image_array=false, format=none, access=writeonly)
32 %2 = deref_var &i2DArray (image image2DMSArray)
error: instr->type == instr->var->type (../src/compiler/nir/nir_validate.c:317)32 %3 = @image_deref_samples (%2) (image_dim=2D-MSAA, image_array=true, format=none, access=writeonly)
32 %4 = iadd %1, %3
32 %5 = deref_var &ii2D (image iimage2DMS)
error: instr->type == instr->var->type (../src/compiler/nir/nir_validate.c:317)32 %6 = @image_deref_samples (%5) (image_dim=2D-MSAA, image_array=false, format=none, access=writeonly)
32 %7 = iadd %4, %6
32 %8 = deref_var &ii2DArray (image iimage2DMSArray)
error: instr->type == instr->var->type (../src/compiler/nir/nir_validate.c:317)32 %9 = @image_deref_samples (%8) (image_dim=2D-MSAA, image_array=true, format=none, access=writeonly)
32 %10 = iadd %7, %9
32 %11 = deref_var &ui2D (image uimage2DMS)
error: instr->type == instr->var->type (../src/compiler/nir/nir_validate.c:317)32 %12 = @image_deref_samples (%11) (image_dim=2D-MSAA, image_array=false, format=none, access=writeonly)
32 %13 = iadd %10, %12
32 %14 = deref_var &ui2DArray (image uimage2DMSArray)
error: instr->type == instr->var->type (../src/compiler/nir/nir_validate.c:317)32 %15 = @image_deref_samples (%14) (image_dim=2D-MSAA, image_array=true, format=none, access=writeonly)
32 %16 = iadd %13, %15
32 %17 = i2f32 %16
32x4 %19 = mov %17.xxxx
32 %20 = load_const (0x00000000)
@store_output (%19, %20 (0x0)) (base=0, range=1, wrmask=xyzw, component=0, src_type=float32, io location=FRAG_RESULT_COLOR slots=1, xfb(), xfb2()) // gl_FragColor
// succs: b1
block b1:
}