Skip to content
Commit a060dc27 authored by Dave Airlie's avatar Dave Airlie Committed by Emil Velikov
Browse files

ac/nir: account for view index in the user sgpr allocation.



The view index user sgpr wasn't being accounted for properly,
this refactors out the code to decide if it's required and then
uses that info to account for it.

Fixes: 180c1b92 (ac/nir: Add shader support for multiviews.)
Reviewed-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
(cherry picked from commit 3153d742)
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>

Conflicts:
	src/amd/common/ac_nir_to_llvm.c
parent 78e11656
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment