summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_tile_size.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-23 09:03:10 -0600
committerBrian Paul <brianp@vmware.com>2010-04-23 09:13:26 -0600
commit71dfbb608acca74268cd6c93b121913a374f6b58 (patch)
tree8ece87443704c89794f5a1775e987b072deee154 /src/gallium/drivers/llvmpipe/lp_tile_size.h
parentccd13da0fc1f1813b55fc0d2181a6cb0d3b42b0d (diff)
llvmpipe: move LP_MAX_TEXTURE_x_LEVELS, etc to lp_tile_size.h
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tile_size.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tile_size.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_size.h b/src/gallium/drivers/llvmpipe/lp_tile_size.h
index f0b983c063..64d5dc18a3 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_size.h
+++ b/src/gallium/drivers/llvmpipe/lp_tile_size.h
@@ -36,4 +36,22 @@
#define TILE_SIZE (1 << TILE_ORDER)
+/**
+ * Max texture sizes
+ */
+#define LP_MAX_TEXTURE_2D_LEVELS 12 /* 2K x 2K for now */
+#define LP_MAX_TEXTURE_3D_LEVELS 10 /* 512 x 512 x 512 for now */
+
+
+/** This must be the larger of LP_MAX_TEXTURE_2D/3D_LEVELS */
+#define LP_MAX_TEXTURE_LEVELS LP_MAX_TEXTURE_2D_LEVELS
+
+
+/**
+ * Max drawing surface size is the max texture size
+ */
+#define MAXHEIGHT (1 << (LP_MAX_TEXTURE_LEVELS - 1))
+#define MAXWIDTH (1 << (LP_MAX_TEXTURE_LEVELS - 1))
+
+
#endif