summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/xmlpool.h
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-02-04 00:25:41 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-02-04 00:25:41 +0000
commit19064f818a4a5124fe52de1cee79e84372da172b (patch)
tree236a9ea38cff42cfa19eccd1c1e2c1f1effe8f30 /src/mesa/drivers/dri/common/xmlpool.h
parentcbff5db516f58304fbc24ae2c4653f426ef68947 (diff)
Added an option texture_heaps that allows selecting which texture heaps
will be used. Implemented this option in the Savage driver. On my ProSavageDDR uploads to AGP memory are about 1.5 times as fast as uploads to card memory. On non-IGP hardware the difference may be even bigger. Now mplayer -gl is getting really usable.
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlpool.h')
-rw-r--r--src/mesa/drivers/dri/common/xmlpool.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/xmlpool.h b/src/mesa/drivers/dri/common/xmlpool.h
index 789d14fe2a..29b5bf597d 100644
--- a/src/mesa/drivers/dri/common/xmlpool.h
+++ b/src/mesa/drivers/dri/common/xmlpool.h
@@ -293,6 +293,23 @@ DRI_CONF_OPT_BEGIN_V(texture_units,int,def, # min ":" # max ) \
DRI_CONF_DESC(de,"Anzahl der Textureinheiten") \
DRI_CONF_OPT_END
+#define DRI_CONF_TEXTURE_HEAPS_ALL 0
+#define DRI_CONF_TEXTURE_HEAPS_CARD 1
+#define DRI_CONF_TEXTURE_HEAPS_GART 2
+#define DRI_CONF_TEXTURE_HEAPS(def) \
+DRI_CONF_OPT_BEGIN_V(texture_heaps,enum,def,"0:2") \
+ DRI_CONF_DESC_BEGIN(en,"Used types of texture memory") \
+ DRI_CONF_ENUM(0,"All available") \
+ DRI_CONF_ENUM(1,"Only card memory (if available)") \
+ DRI_CONF_ENUM(2,"Only GART (AGP/PCIE) memory (if available)") \
+ DRI_CONF_DESC_END \
+ DRI_CONF_DESC_BEGIN(de,"Verwendete Texturspeicherarten") \
+ DRI_CONF_ENUM(0,"Alle verfügbaren") \
+ DRI_CONF_ENUM(1,"Nur Grafikspeicher (falls vorhanden)") \
+ DRI_CONF_ENUM(2,"Nur GART (AGP/PCIE) Speicher (falls vorhanden)") \
+ DRI_CONF_DESC_END \
+DRI_CONF_OPT_END
+
/* Options for features that are not done in hardware by the driver (like GL_ARB_vertex_program
On cards where there is no documentation (r200) or on rasterization-only hardware). */
#define DRI_CONF_SECTION_SOFTWARE \