<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Vertex shader causes compiler to crash in SPIRV-to-NIR"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103579">103579</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Vertex shader causes compiler to crash in SPIRV-to-NIR
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Vulkan/radeon
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>maister@archlinux.us
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=135247" name="attach_135247" title="Repro shader">attachment 135247</a> <a href="attachment.cgi?id=135247&action=edit" title="Repro shader">[details]</a></span>
Repro shader
The attached vertex shader crashes when trying to emit code for
%23 = OpLoad %19 %22 (gl_InstanceIndex)
with backtrace:
#0 0x00007ffff4a15f66 in vtn_pointer_to_offset (b=0x555556fb88b0,
ptr=0x555557023280, index_out=0x7fffffffb2d0, end_idx_out=0x7fffffffb2c8) at
spirv/vtn_variables.c:521
#1 0x00007ffff4a16e91 in vtn_block_load (b=0x555556fb88b0, src=0x555557023280)
at spirv/vtn_variables.c:838
#2 0x00007ffff4a17211 in vtn_variable_load (b=0x555556fb88b0,
src=0x555557023280) at spirv/vtn_variables.c:927
#3 0x00007ffff4a18f3d in vtn_handle_variables (b=0x555556fb88b0,
opcode=SpvOpLoad, w=0x5555570249c8, count=4) at spirv/vtn_variables.c:1841
#4 0x00007ffff4a088fe in vtn_handle_body_instruction (b=0x555556fb88b0,
opcode=SpvOpLoad, w=0x5555570249c8, count=4) at spirv/spirv_to_nir.c:3092
#5 0x00007ffff4a00cb0 in vtn_foreach_instruction (b=0x555556fb88b0,
start=0x555557024764, end=0x555557024a78, handler=0x7ffff4a08834
<vtn_handle_body_instruction>) at spirv/spirv_to_nir.c:244
#6 0x00007ffff4a0e9e2 in vtn_emit_cf_list (b=0x555556fb88b0,
cf_list=0x555556fa9ef0, switch_fall_var=0x0, has_switch_break=0x0,
handler=0x7ffff4a08834 <vtn_handle_body_instruction>) at spirv/vtn_cfg.c:600
#7 0x00007ffff4a0f20e in vtn_function_emit (b=0x555556fb88b0,
func=0x555556fa9ed0, instruction_handler=0x7ffff4a08834
<vtn_handle_body_instruction>) at spirv/vtn_cfg.c:775
#8 0x00007ffff4a08d9f in spirv_to_nir (words=0x555557024748, word_count=608,
spec=0x0, num_spec=0, stage=MESA_SHADER_VERTEX, entry_point_name=0x555555bdb9b8
"main", ext=0x7fffffffb820, options=0x7ffff4a4fd20 <nir_options>) at
spirv/spirv_to_nir.c:3376
#9 0x00007ffff494e318 in radv_shader_compile_to_nir (device=0x555556e2d400,
module=0x5555570240e0, entrypoint_name=0x555555bdb9b8 "main",
stage=MESA_SHADER_VERTEX, spec_info=0x0) at radv_shader.c:209
#10 0x00007ffff4948d80 in radv_create_shaders (pipeline=0x555556fce9f0,
device=0x555556e2d400, cache=0x555556e354f0, key=..., pStages=0x7fffffffbc10)
at radv_pipeline.c:1821
#11 0x00007ffff4949869 in radv_pipeline_init (pipeline=0x555556fce9f0,
device=0x555556e2d400, cache=0x555556e354f0, pCreateInfo=0x555556fb40c8,
extra=0x0, alloc=0x555556e2d408) at radv_pipeline.c:1983
#12 0x00007ffff494a738 in radv_graphics_pipeline_create
(_device=0x555556e2d400, _cache=0x555556e354f0, pCreateInfo=0x555556fb40c8,
extra=0x0, pAllocator=0x0, pPipeline=0x555557047c70) at radv_pipeline.c:2260
#13 0x00007ffff494a7f6 in radv_CreateGraphicsPipelines (_device=0x555556e2d400,
pipelineCache=0x555556e354f0, count=1, pCreateInfos=0x555556fb40c8,
pAllocator=0x0, pPipelines=0x555557047c70) at radv_pipeline.c:2285</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>