diff options
author | Keith Whitwell <[email protected]> | 2009-10-09 10:24:19 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-10-09 10:24:19 +0100 |
commit | 84ab7dcf48e87350c0622c533e51aa495f7256c2 (patch) | |
tree | a5ead1456d589ef3bc7fd974fe3e7458ad26f0c7 /src/gallium/drivers/llvmpipe/lp_setup.h | |
parent | de902d3275d1861beb0cebdf0807a17e2682c8de (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.h | 10 |
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 04f9f878926..bd439fa8578 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; |