llvmpipe: Allow floating types without sign.

With the meaning that all values are assumed to be positive.
This commit is contained in:
José Fonseca 2009-08-08 22:51:11 +01:00
parent 9493260fdc
commit 8244d6e5ad
2 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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;