[Mesa-dev] [PATCH] AMDGPU: Don't allow using SI SGPRs 102 and 103 directly.
Tom Stellard
tom at stellard.net
Wed Oct 31 09:49:15 PDT 2012
On Wed, Oct 31, 2012 at 05:00:04PM +0100, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Two SGPRs are used for VCC, so it's not possible to use these and VCC
> together.
>
Reviewed-by: Tom Stellard <thomas.stellar at amd.com>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> lib/Target/AMDGPU/SIRegisterInfo.td | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/Target/AMDGPU/SIRegisterInfo.td b/lib/Target/AMDGPU/SIRegisterInfo.td
> index a3d91ae..e52311a 100644
> --- a/lib/Target/AMDGPU/SIRegisterInfo.td
> +++ b/lib/Target/AMDGPU/SIRegisterInfo.td
> @@ -65,12 +65,12 @@ def SAMPLE_COVERAGE : SIReg <"SAMPLE_COVERAGE">;
> def POS_FIXED_PT : SIReg <"POS_FIXED_PT">;
>
> // SGPR 32-bit registers
> -foreach Index = 0-103 in {
> +foreach Index = 0-101 in {
> def SGPR#Index : SGPR_32 <Index, "SGPR"#Index>;
> }
>
> def SGPR_32 : RegisterClass<"AMDGPU", [f32, i32], 32,
> - (add (sequence "SGPR%u", 0, 103))>;
> + (add (sequence "SGPR%u", 0, 101))>;
>
> // SGPR 64-bit registers
> def SGPR_64 : RegisterTuples<[low, high],
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list