[llvm] b2817d2 - Revert "[AMDGPU] New PAL metadata updates to ps_extra_lds_size and float_mode"
David Stuttard via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 05:05:27 PDT 2023
Author: David Stuttard
Date: 2023-06-06T13:02:28+01:00
New Revision: b2817d22bb53e7fb8f1b7afa960b941f53e02591
URL: https://github.com/llvm/llvm-project/commit/b2817d22bb53e7fb8f1b7afa960b941f53e02591
DIFF: https://github.com/llvm/llvm-project/commit/b2817d22bb53e7fb8f1b7afa960b941f53e02591.diff
LOG: Revert "[AMDGPU] New PAL metadata updates to ps_extra_lds_size and float_mode"
This reverts commit 6d5a653dda628250b373ec89e0e11cdd27603c24.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index 653f3172c0ac1..fb3ce11a495e7 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -1045,6 +1045,10 @@ void AMDGPUAsmPrinter::EmitPALMetadata(const MachineFunction &MF,
MD->setRsrc2(CC, S_00B84C_SCRATCH_EN(1));
}
} else {
+ // Priority?
+ MD->setHwStage(CC, ".float_mode", CurrentProgramInfo.FloatMode);
+ // Priv?
+ // DX10Clamp?
MD->setHwStage(CC, ".debug_mode", (bool)CurrentProgramInfo.DebugMode);
MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode);
MD->setHwStage(CC, ".wgp_mode", (bool)CurrentProgramInfo.WgpMode);
@@ -1078,12 +1082,7 @@ void AMDGPUAsmPrinter::EmitPALMetadata(const MachineFunction &MF,
MD->setSpiPsInputAddr(MFI->getPSInputAddr());
} else {
// Graphics registers
- const unsigned ExtraLdsDwGranularity =
- STM.getGeneration() >= AMDGPUSubtarget::GFX11 ? 256 : 128;
- MD->setGraphicsRegisters(
- ".ps_extra_lds_size",
- (unsigned)(ExtraLDSSize * ExtraLdsDwGranularity * sizeof(uint32_t)));
-
+ MD->setGraphicsRegisters(".ps_extra_lds_size", ExtraLDSSize);
// Set PsInputEna and PsInputAddr .spi_ps_input_ena and .spi_ps_input_addr
static StringLiteral const PsInputFields[] = {
".persp_sample_ena", ".persp_center_ena",
More information about the llvm-commits
mailing list