[Mesa-dev] [PATCH 02/10] amd/common: clarify ac_shader_binary::lds_size

Nicolai Hähnle nhaehnle at gmail.com
Fri May 3 11:18:21 UTC 2019


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

---
 src/amd/common/ac_binary.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_binary.h b/src/amd/common/ac_binary.h
index febc4da7fed..8f594a9ce75 100644
--- a/src/amd/common/ac_binary.h
+++ b/src/amd/common/ac_binary.h
@@ -68,21 +68,21 @@ struct ac_shader_binary {
 	/** Disassembled shader in a string. */
 	char *disasm_string;
 	char *llvm_ir_string;
 };
 
 struct ac_shader_config {
 	unsigned num_sgprs;
 	unsigned num_vgprs;
 	unsigned spilled_sgprs;
 	unsigned spilled_vgprs;
-	unsigned lds_size;
+	unsigned lds_size; /* in HW allocation units; i.e 256 bytes on SI, 512 bytes on CI+ */
 	unsigned spi_ps_input_ena;
 	unsigned spi_ps_input_addr;
 	unsigned float_mode;
 	unsigned scratch_bytes_per_wave;
 };
 
 /*
  * Parse the elf binary stored in \p elf_data and create a
  * ac_shader_binary object.
  */
-- 
2.20.1



More information about the mesa-dev mailing list