summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_type.c2
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_type.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_type.c b/src/gallium/drivers/llvmpipe/lp_bld_type.c
index fd6ff99e2e..8e0026fd97 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_type.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_type.c
@@ -29,13 +29,13 @@
#include "util/u_debug.h"
#include "lp_bld_type.h"
+#include "lp_bld_const.h"
LLVMTypeRef
lp_build_elem_type(union lp_type type)
{
if (type.floating) {
- assert(type.sign);
switch(type.width) {
case 32:
return LLVMFloatType();
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_type.h b/src/gallium/drivers/llvmpipe/lp_bld_type.h
index c56dd3b20e..3ce566be64 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_type.h
+++ b/src/gallium/drivers/llvmpipe/lp_bld_type.h
@@ -73,7 +73,8 @@ union lp_type {
/**
* Whether it can represent negative values or not.
*
- * Floating point values should always have this bit set.
+ * If this is not set for floating point, it means that all values are
+ * assumed to be positive.
*/
unsigned sign:1;