Skip to content
Snippets Groups Projects
Commit cad3caba authored by Marek Olšák's avatar Marek Olšák Committed by Eric Engestrom
Browse files

radeonsi: fix applying the NGG minimum vertex count requirement


The code applied the restriction too late, which could overflow LDS size,
which started happening more often after the minimum vertex count was
increased for Sienna.

Incorporate the clamping into the previous code for rounding up the counts.
Now the LDS size can never overflow, but it may use vector lanes less
efficiently (max_gsprims can be decreased more), which will be addressed
in the next commit.

Fixes: 4ecc39e1 ("radeonsi/gfx10: NGG geometry shader PM4 and upload")

Acked-by: default avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <!6137>
(cherry picked from commit 64c741ff)
parent a4dfa2bd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment