<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 - GfxBench AztecRuins Vulkan version Segfault"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109304">109304</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GfxBench AztecRuins Vulkan version Segfault
</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/intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eero.t.tamminen@intel.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>jason@jlekstrand.net
</td>
</tr></table>
<p>
<div>
<pre>Setup:
* Ubuntu 18.04
* Latest Mesa from git
* Latest X or Weston from git
* drm-tip git kernel v4.20 or newer
* GfxBench v5 (X or Wayland build, GOLD2 or GOLD3 version)
Test-case:
* Run AztecRuins (normal or high) Vulkan version:
bin/testfw_app --gfx vulkan --gl_api vulkan --width 1920 --height 1080
--fullscreen 1 --test_id vulkan_5_normal
Result:
* Segfault when run from Gdb (abort when run without as GfxBench catches them
and aborts):
--------------------------------------
...
compile light_directional_cube.frag...
done
SPIR-V WARNING:
In file
../../../../../source2/_repos/git___anongit_freedesktop_org_git_mesa_mesa/src/compiler/spirv/vtn_variables.c:2258
OpStore of a sampler detected. Doing on-the-fly copy propagation to
workaround the problem.
9408 bytes into the SPIR-V binary
Thread 2 "testfw_app" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff3339700 (LWP 10251)]
--------------------------------------
This doesn't happen with GL or GLES versions, only Vulkan. This regression
started between following commits:
* 2019-01-07 17:07:33 0cc01f45e7: glsl: correct typo in GLSL compilation error
message
* 2019-01-08 17:51:46 d0c6ef2793: nir: rename global/local to private/function
memory
Valgrind says following:
--------------------------------------
SPIR-V WARNING:
In file src/compiler/spirv/vtn_variables.c:2258
OpStore of a sampler detected. Doing on-the-fly copy propagation to
workaround the problem.
9408 bytes into the SPIR-V binary
==10457== Invalid read of size 4
==10457== at 0xA54E458: try_lower_tex_ycbcr
(anv_nir_lower_ycbcr_textures.c:328)
==10457== by 0xA54E458: anv_nir_lower_ycbcr_textures
(anv_nir_lower_ycbcr_textures.c:464)
==10457== by 0xA55372F: anv_pipeline_lower_nir (anv_pipeline.c:500)
==10457== by 0xA555FEE: anv_pipeline_compile_graphics (anv_pipeline.c:1034)
==10457== by 0xA5577BB: anv_pipeline_init (anv_pipeline.c:1463)
==10457== by 0xA676675: gen9_graphics_pipeline_create (genX_pipeline.c:1787)
==10457== by 0xA676675: gen9_CreateGraphicsPipelines (genX_pipeline.c:2001)
==10457== by 0x917FCC: ??? (in bin/testfw_app)
==10457== Address 0x3c is not stack'd, malloc'd or (recently) free'd
==10457==
==10457==
==10457== Process terminating with default action of signal 6 (SIGABRT)
==10457== at 0x7239E97: raise (raise.c:51)
==10457== by 0x723B800: abort (abort.c:79)
==10457== by 0x6872B5: ??? (in bin/testfw_app)
==10457== by 0x623888F: ??? (in /lib/x86_64-linux-gnu/libpthread-2.27.so)
==10457== by 0xA54E457: try_lower_tex_ycbcr
(anv_nir_lower_ycbcr_textures.c:396)
==10457== by 0xA54E457: anv_nir_lower_ycbcr_textures
(anv_nir_lower_ycbcr_textures.c:464)
==10457== by 0xA55372F: anv_pipeline_lower_nir (anv_pipeline.c:500)
==10457== by 0xA555FEE: anv_pipeline_compile_graphics (anv_pipeline.c:1034)
==10457== by 0xA5577BB: anv_pipeline_init (anv_pipeline.c:1463)
==10457== by 0xA676675: gen9_graphics_pipeline_create (genX_pipeline.c:1787)
==10457== by 0xA676675: gen9_CreateGraphicsPipelines (genX_pipeline.c:2001)
--------------------------------------</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>