summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_rm_tu104.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_rm_tu104.h')
-rw-r--r--kernel/gsp_rm_tu104.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/gsp_rm_tu104.h b/kernel/gsp_rm_tu104.h
index 3382939..f623da4 100644
--- a/kernel/gsp_rm_tu104.h
+++ b/kernel/gsp_rm_tu104.h
@@ -945,6 +945,17 @@ struct tu104_bus_get_info_v2_params {
#define TU104_BUS_INFO_IDX_PCIE_DOWNSTREAM_LINK_CTRL 0x0a
#define TU104_BUS_INFO_IDX_PCIE_GEN_INFO 0x2d
#define TU104_BUS_INFO_IDX_SYSMEM_CONNECTION_TYPE 0x33
+/*
+ * SESSION 155 CONT 26: GPU GART size / DMA flags. The GL client's buffer
+ * allocator reads GPU_GART_SIZE and the GPUGART/CTXDMA capability flags
+ * from BUS_GET_INFO_V2 at context init; a zero reply makes gpuGartSize=0,
+ * the heap limits 0, and every glBufferData(data)/glMapBufferRange fail
+ * GL_OUT_OF_MEMORY (the GZDoom GL crash).
+ */
+#define TU104_BUS_INFO_IDX_GPU_GART_SIZE 0x0d
+#define TU104_BUS_INFO_IDX_GPU_GART_SIZE_ALT 0x32
+#define TU104_BUS_INFO_IDX_GPU_GART_DMA_FLAGS_0 0x0b
+#define TU104_BUS_INFO_IDX_GPU_GART_DMA_FLAGS_1 0x0c
#define TU104_BUS_INFO_TYPE_PCI_EXPRESS 0x03
#define TU104_BUS_INFO_SYSMEM_CONN_PCIE 0x00