summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_setup.h
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-10-09 10:24:19 +0100
committerKeith Whitwell <keithw@vmware.com>2009-10-09 10:24:19 +0100
commit84ab7dcf48e87350c0622c533e51aa495f7256c2 (patch)
treea5ead1456d589ef3bc7fd974fe3e7458ad26f0c7 /src/gallium/drivers/llvmpipe/lp_setup.h
parentde902d3275d1861beb0cebdf0807a17e2682c8de (diff)
llvmpipe: calculate overall width and height, pass to rasterizer
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.h b/src/gallium/drivers/llvmpipe/lp_setup.h
index 04f9f87892..bd439fa857 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.h
+++ b/src/gallium/drivers/llvmpipe/lp_setup.h
@@ -37,9 +37,15 @@ enum lp_interp {
LP_INTERP_FACING
};
+/* Describes how to generate all the fragment shader inputs from the
+ * the vertices passed into our triangle/line/point functions.
+ *
+ * Vertices are treated as an array of float[4] values, indexed by
+ * src_index.
+ */
struct lp_shader_input {
- enum lp_interp interp;
- unsigned vs_output;
+ enum lp_interp interp; /* how to interpolate values */
+ unsigned src_index; /* where to find values in incoming vertices */
};
struct pipe_texture;