summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_arit.h27
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_type.h26
2 files changed, 27 insertions, 26 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_arit.h b/src/gallium/drivers/llvmpipe/lp_bld_arit.h
index cec54a257f7..35961eb9c8b 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_arit.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_arit.h
@@ -41,32 +41,7 @@
union lp_type type;
-
-
-/**
- * We need most of the information here in order to correctly and efficiently
- * translate an arithmetic operation into LLVM IR. Putting it here avoids the
- * trouble of passing it as parameters.
- */
-struct lp_build_context
-{
- LLVMBuilderRef builder;
-
- /**
- * This not only describes the input/output LLVM types, but also whether
- * to normalize/clamp the results.
- */
- union lp_type type;
-
- /** Same as lp_build_undef(type) */
- LLVMValueRef undef;
-
- /** Same as lp_build_zero(type) */
- LLVMValueRef zero;
-
- /** Same as lp_build_one(type) */
- LLVMValueRef one;
-};
+struct lp_build_context;
/**
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_type.h b/src/gallium/drivers/llvmpipe/lp_bld_type.h
index 46231832236..0eeaf7b6aa9 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_type.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_type.h
@@ -108,6 +108,32 @@ union lp_type {
};
+/**
+ * We need most of the information here in order to correctly and efficiently
+ * translate an arithmetic operation into LLVM IR. Putting it here avoids the
+ * trouble of passing it as parameters.
+ */
+struct lp_build_context
+{
+ LLVMBuilderRef builder;
+
+ /**
+ * This not only describes the input/output LLVM types, but also whether
+ * to normalize/clamp the results.
+ */
+ union lp_type type;
+
+ /** Same as lp_build_undef(type) */
+ LLVMValueRef undef;
+
+ /** Same as lp_build_zero(type) */
+ LLVMValueRef zero;
+
+ /** Same as lp_build_one(type) */
+ LLVMValueRef one;
+};
+
+
LLVMTypeRef
lp_build_elem_type(union lp_type type);