Bug 109920 - "NIR validation failed in internal shader" abort with all Vulkan test-cases
Summary: "NIR validation failed in internal shader" abort with all Vulkan test-cases
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: high critical
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: 108900
  Show dependency treegraph
 
Reported: 2019-03-06 11:33 UTC by Eero Tamminen
Modified: 2019-03-08 08:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Eero Tamminen 2019-03-06 11:33:18 UTC
Setup:
* KBL 8809G (HadesCanyon)
* Ubuntu 18.04
* drm-tip kernel, X server and Mesa built from Git
* Any Vulkan test

Test-case:
* Run Sacha Willems' Vulkan triangle test
  ./triangle

Expected outcome:
* Vulkan tests work with RADV, like they do with ANV

* Actual outcome:
---------------------------------
$ ./triangle 
NIR validation failed in internal shader
1 errors:
shader: MESA_SHADER_COMPUTE
name: meta_clear_htile_mask
local-size: 64, 1, 1
shared-size: 0
inputs: 0
outputs: 0
uniforms: 0
shared: 0
decl_function main (0 params)

impl main {
	block block_0:
	/* preds: */
	vec3 32 ssa_0 = intrinsic load_local_invocation_id () ()
	vec3 32 ssa_1 = intrinsic load_work_group_id () ()
	vec4 32 ssa_2 = load_const (0x00000040 /* 0.000000 */, 0x00000001 /* 0.000000 */, 0x00000001 /* 0.000000 */, 0x00000000 /* 0.000000 */)
	vec4 32 ssa_3 = imul ssa_1.xyzz, ssa_2
	vec4 32 ssa_4 = iadd ssa_3, ssa_0.xyzz
	vec1 32 ssa_5 = load_const (0x00000010 /* 0.000000 */)
	vec4 32 ssa_6 = imul ssa_4, ssa_5.xxxx
	vec1 32 ssa_7 = imov ssa_6.x
	vec1 32 ssa_8 = load_const (0x00000000 /* 0.000000 */)
	vec1 32 ssa_9 = intrinsic vulkan_resource_index (ssa_8) (0, 0, 0) /* desc-set=0 */ /* binding=0 */ /* desc_type=sampler */
error: components_written > 0 (../../../../../source2/_repos/git___anongit_freedesktop_org_git_mesa_mesa/src/compiler/nir/nir_validate.c:569)

	vec1 32 ssa_10 = load_const (0x00000000 /* 0.000000 */)
	/* constants */ vec2 32 ssa_11 = intrinsic load_push_constant (ssa_10) (0, 8) /* base=0 */ /* range=8 */
	vec4 32 ssa_12 = intrinsic load_ssbo (ssa_9, ssa_7) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
	vec1 32 ssa_13 = imov /* constants */ ssa_11.y
	vec4 32 ssa_14 = iand ssa_12, ssa_13.xxxx
	vec1 32 ssa_15 = imov /* constants */ ssa_11.x
	vec4 32 ssa_16 = ior ssa_14, ssa_15.xxxx
	intrinsic store_ssbo (ssa_16, ssa_9, ssa_7) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
	/* succs: block_1 */
	block block_1:
}

Aborted
---------------------------------

This has regressed within past day, between:
2019-03-04 17:33:17 610758d3e54027: egl/sl: also allow virtgpu to fallback to kms_swrast
2019-03-05 16:06:50 43f40dc7cb234e: anv: Implement VK_EXT_inline_uniform_block

And it's still broken with Git tip.
Comment 1 Turo Lamminen 2019-03-06 11:36:59 UTC
Duplicate of #109919 though this one has a better title. I already bisected it to 61e009d2c4e4dfc071185f9e9c6366bc53168019
Comment 2 Eero Tamminen 2019-03-06 12:01:25 UTC

*** This bug has been marked as a duplicate of bug 109919 ***
Comment 4 Eero Tamminen 2019-03-07 13:20:46 UTC
Verified


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.