[Mesa-dev] [PATCH] R600/SI: allow 4 more input SGPRs to a shader
Marek Olšák
maraeo at gmail.com
Sat Apr 26 06:37:44 PDT 2014
Sorry, the subject should say "5 more input SGPRs".
Marek
On Sat, Apr 26, 2014 at 3:36 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Mesa needs one more SGPR, let's add 5 then, because it's a recurring issue.
>
> This is silly. Why cannot Mesa specify the calling convention?
> Now I have to break transform feedback to support ARB_draw_indirect until
> this patch is released. Or I'll have to wait until the release and then
> merge ARB_draw_indirect support.
>
> Signed-off-by: Marek Olšák <marek.olsak at amd.com>
> ---
> lib/Target/R600/AMDGPUCallingConv.td | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/Target/R600/AMDGPUCallingConv.td b/lib/Target/R600/AMDGPUCallingConv.td
> index 65cdb24..5f8ad8c 100644
> --- a/lib/Target/R600/AMDGPUCallingConv.td
> +++ b/lib/Target/R600/AMDGPUCallingConv.td
> @@ -20,7 +20,7 @@ def CC_SI : CallingConv<[
> CCIfInReg<CCIfType<[f32, i32] , CCAssignToReg<[
> SGPR0, SGPR1, SGPR2, SGPR3, SGPR4, SGPR5, SGPR6, SGPR7,
> SGPR8, SGPR9, SGPR10, SGPR11, SGPR12, SGPR13, SGPR14, SGPR15,
> - SGPR16
> + SGPR16, SGPR17, SGPR18, SGPR19, SGPR20, SGPR21
> ]>>>,
>
> CCIfInReg<CCIfType<[i64] , CCAssignToRegWithShadow<
> --
> 1.8.3.2
>
More information about the mesa-dev
mailing list