summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-10-08 15:44:29 +0100
committerKeith Whitwell <[email protected]>2009-10-08 15:46:29 +0100
commit931210424bc46b2c13919f0ac3e0ef781eff207e (patch)
tree26dc9949ca2bd6b5270784c3f699a5304e7f0cc7 /src/gallium/drivers/llvmpipe/lp_setup.h
parentd614ced756f2cca64ec83b122da4cd028c08c0eb (diff)
llvmpipe: wip me harder
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.h44
1 files changed, 31 insertions, 13 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.h b/src/gallium/drivers/llvmpipe/lp_setup.h
index 05aaaf83b8e..2542faad36b 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.h
+++ b/src/gallium/drivers/llvmpipe/lp_setup.h
@@ -27,28 +27,46 @@
#ifndef LP_SETUP_H
#define LP_SETUP_H
+
+enum lp_interp {
+ LP_INTERP_CONSTANT,
+ LP_INTERP_LINEAR,
+ LP_INTERP_PERSPECTIVE,
+ LP_INTERP_POSITION,
+ LP_INTERP_FACING
+};
+
struct setup_context;
-struct llvmpipe_context;
-/* Note, not using setup_context currently
- */
+struct setup_context *
+lp_setup_create( void );
void
-llvmpipe_setup_line(struct setup_context *setup,
- const float (*v0)[4],
- const float (*v1)[4]);
+lp_setup_triangle(struct setup_context *setup,
+ const float (*v0)[4],
+ const float (*v1)[4],
+ const float (*v1)[4]);
void
-llvmpipe_setup_point( struct setup_context *setup,
- const float (*v0)[4] );
-
+lp_setup_line(struct setup_context *setup,
+ const float (*v0)[4],
+ const float (*v1)[4]);
-struct setup_context *setup_create_context( struct llvmpipe_context *llvmpipe );
+void
+lp_setup_point( struct setup_context *setup,
+ const float (*v0)[4] );
-void setup_prepare( struct setup_context *setup );
+void
+lp_setup_set_triangle_state( struct setup_context *setup,
+ unsigned cullmode,
+ boolean front_is_ccw );
-void setup_destroy_context( struct setup_context *setup );
+void
+lp_setup_set_fs_inputs( struct setup_context *setup,
+ const enum lp_interp *interp,
+ unsigned nr );
-void setup_prepare_tri( struct llvmpipe_context *llvmpipe );
+void
+lp_setup_destroy( struct setup_context *setup );
#endif