Tessellation bug on Carrizo
https://bugs.freedesktop.org/show_bug.cgi?id=99850
Bug ID: 99850
Summary: Tessellation bug on Carrizo
Product: Mesa
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Created attachment 129692
--> https://bugs.freedesktop.org/attachment.cgi?id=129692&action=edit
carrizo run with HEAD
Tessellation is broken on Carrizo (A12-9800) hardware and apparently has been for a while. The offending commit is
commit a4e2146a9d24592ed7e3bf778e3c21c6cfb89330
Author: Bas Nieuwenhuizen <[email protected]> Date: Mon May 2 14:55:52 2016 +0200
radeonsi: Use buffer loads and stores for passing data from TCS to TES.
We always try to use 4-component loads, as LLVM does not combine loads and they bypass the L1 cache.
We can't use a similar strategy for stores and this is especially notable with the tess factors, as they are often set with separate MOV's per component in the TGSI.
We keep storing to LDS and the LDS space, so we can load the outputs later, either due to the shader, of for wrting the tess factors.
I found it via running Unigine-Heaven with tessellation enabled.
The bug doesn't occur on other VI hardware (Polaris10, FIJI).
I can confirm that the HEAD~ commit leads to spec/arb_tessellation_shader/* tests (in piglit) passing compared to running with HEAD.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #1 from Tom St Denis <[email protected]> --- Created attachment 129693
--> https://bugs.freedesktop.org/attachment.cgi?id=129693&action=edit
Carrizo run with HEAD~
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #2 from Tom St Denis <[email protected]> ---
Dug up the original thread that introduced this patch. Might prove useful in debugging it.
https://lists.freedesktop.org/archives/mesa-dev/2016-May/116152.html
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from Michel Dänzer <[email protected]> --- Bas, any ideas?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
Reviewed-by Christian Könighttps://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #4 from Tom St Denis <[email protected]> --- Alex commented that mesa could use this addition to the kmd to selectively enable/disable this feature on APUs
commit 921e71c548b313f704745dcc609ffb0206da1afe
Author: Junwei Zhang <[email protected]> AuthorDate: Fri Feb 17 11:05:49 2017 +0800 Commit: Junwei Zhang <[email protected]> CommitDate: Tue Feb 21 10:22:30 2017 +0800
drm/amdgpu: export gfx config double offchip LDS buffers (v3)
v2: move the config struct to drm_amdgpu_info_device
v3: move the config feature to amdgpu_gca_config
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #5 from Alex Deucher <[email protected]> --- (In reply to Tom St Denis from comment #4)
Quoted 2 lines
Alex commented that mesa could use this addition to the kmd to selectively enable/disable this feature on APUs
Not to selectively enable, but I think it might be related. We may need some adjustments in the UMD to deal with the hw differences.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #6 from Marek Olšák <[email protected]> --- You can try this diff:
(quoted diff) +0 -0
b/src/gallium/drivers/radeonsi/si_state_shaders.c
index f615aa8..750cdd6 100644
src/gallium/drivers/radeonsi/si_state_shaders.c +0 -0
@@ -2312,7 +2312,9 @@ static bool si_update_spi_tmpring_size(struct si_context
*sctx)
static void si_init_tess_factor_ring(struct si_context *sctx)
{
- bool double_offchip_buffers = sctx->b.chip_class >= CIK;
+ bool double_offchip_buffers = sctx->b.chip_class >= CIK &&
+ sctx->b.family != CHIP_CARRIZO &&
+ sctx->b.family != CHIP_STONEY;
unsigned max_offchip_buffers_per_se = double_offchip_buffers ? 128 :
64;
unsigned max_offchip_buffers = max_offchip_buffers_per_se *
sctx->screen->b.info.max_se;
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #7 from Tom St Denis <[email protected]> --- I'll try this momentarily (rig is configured for polaris10).
Probably cleaner though to check the flag from the KMD though in the long run right?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
Tom St Denis <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED--- Comment #8 from Tom St Denis <[email protected]> ---
With that diff applied unigine-heaven works with tess enabled on the tip of mesa{master} as of right now.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #9 from Tom St Denis <[email protected]> --- Confirmed 1759 "pass"'es with tessellation tests in piglit vs 1724 passes with HEAD~.
Yipee.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED--- Comment #10 from Michel Dänzer <[email protected]> ---
Bug reports should only be resolved once the fix has landed in Git, preferably with a reference to the commit fixing it.
BTW, always specify explicit Git commit hashes instead of "HEAD". HEAD refers to the currently checked out commit, it has no meaning outside of your local repository.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
--- Comment #11 from Tom St Denis <[email protected]> --- Thanks Michel, I was a bit quick in closing the bug.
Note the bug description mentions the offending commit hash so instead of pasting that everywhere I called that HEAD and the good commit HEAD~. Conventions I suppose... :-)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99850
Samuel Pitoiset <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|REOPENED |RESOLVED--- Comment #12 from Samuel Pitoiset <[email protected]> --- Should be fixed by 35915af6c9ab4bdc0f1f8584ca346602405bd7e4.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel