summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2009-11-06 00:37:37 -0500
committerZack Rusin <zackr@vmware.com>2009-11-06 22:08:21 -0500
commit6c44d399bd23e734f2302897ee74e4869ff33816 (patch)
tree887efe78c8f1b3cb3cef9e6ccf833877532e5199
parent6b0bcfafab7b380ee71da1a7754f4c09614811d6 (diff)
st/xorg: make the buffer size global
-rw-r--r--src/gallium/state_trackers/xorg/xorg_renderer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_renderer.h b/src/gallium/state_trackers/xorg/xorg_renderer.h
index f92f186eb6..c556028b48 100644
--- a/src/gallium/state_trackers/xorg/xorg_renderer.h
+++ b/src/gallium/state_trackers/xorg/xorg_renderer.h
@@ -7,6 +7,14 @@
struct xorg_shaders;
struct exa_pixmap_priv;
+/* max number of vertices *
+ * max number of attributes per vertex *
+ * max number of components per attribute
+ *
+ * currently the max is 5 quads
+ */
+#define BUF_SIZE (20 * 3 * 4)
+
struct xorg_renderer {
struct pipe_context *pipe;
@@ -16,7 +24,7 @@ struct xorg_renderer {
struct pipe_constant_buffer vs_const_buffer;
struct pipe_constant_buffer fs_const_buffer;
- float vertices[4*3*4];
+ float vertices[BUF_SIZE];
};
struct xorg_renderer *renderer_create(struct pipe_context *pipe);