Bug 1413888

Summary: radeonsi GL_ARB_tessellation_shader regressed to broken
Product: [Fedora] Fedora Reporter: Edward O'Callaghan <funfunctor>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: ajax, bos, davejohansen, dmalcolm, fschwarz, ignatenko, jistone, petersen, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mesa-13.0.3-4.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-29 00:20:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Edward O'Callaghan 2017-01-17 09:09:43 UTC
The GL_ARB_tessellation_shader (OpenGL 4 and above) is now broken on Fedora 25 with radeonsi because mesa was rebased to 13.x that is using the newer llvm api.

"unsupported calls to llvm.amdgcn.s.waitcnt".



mesa commits using the op are 2c9d26a3  and  836cab51c

$ git grep 'llvm.amdgcn.s.waitcnt'

src/amd/common/ac_nir_to_llvm.c: 

  ac_emit_llvm_intrinsic(&ctx->ac,"llvm.amdgcn.s.waitcnt",

src/gallium/drivers/radeonsi/si_shader.c:

  lp_build_intrinsic(builder, "llvm.amdgcn.s.waitcnt",



Tested with a RX480 using kern 4.9 and mesa 13.0.3

Comment 1 Edward O'Callaghan 2017-01-17 09:18:15 UTC
The 'Unigine Heaven' demo will exercise the behavior to reproduce, scene miss-renders and FPS drop to 2-3fps.

Comment 3 Edward O'Callaghan 2017-01-23 12:26:20 UTC
The following patch is required,

https://cgit.freedesktop.org/mesa/mesa/commit/?id=57f18623fb94891c04f3a395cfd977ea3747ee61

Comment 4 Fedora Update System 2017-01-24 04:19:33 UTC
mesa-13.0.3-4.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-9c9c0899f9

Comment 5 Fedora Update System 2017-01-28 19:19:29 UTC
mesa-13.0.3-4.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9c9c0899f9

Comment 6 Fedora Update System 2017-01-29 00:20:55 UTC
mesa-13.0.3-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.