mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
nv50/ir: Add missing handling of U64/S64 in inlines
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
9074470d7b
commit
ae70879530
1 changed files with 3 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ static inline bool isFloatType(DataType ty)
|
|||
|
||||
static inline bool isSignedIntType(DataType ty)
|
||||
{
|
||||
return (ty == TYPE_S8 || ty == TYPE_S16 || ty == TYPE_S32);
|
||||
return (ty == TYPE_S8 || ty == TYPE_S16 || ty == TYPE_S32 || ty == TYPE_S64);
|
||||
}
|
||||
|
||||
static inline bool isSignedType(DataType ty)
|
||||
|
|
@ -136,6 +136,7 @@ static inline bool isSignedType(DataType ty)
|
|||
case TYPE_U8:
|
||||
case TYPE_U16:
|
||||
case TYPE_U32:
|
||||
case TYPE_U64:
|
||||
case TYPE_B96:
|
||||
case TYPE_B128:
|
||||
return false;
|
||||
|
|
@ -147,6 +148,7 @@ static inline bool isSignedType(DataType ty)
|
|||
static inline DataType intTypeToSigned(DataType ty)
|
||||
{
|
||||
switch (ty) {
|
||||
case TYPE_U64: return TYPE_S64;
|
||||
case TYPE_U32: return TYPE_S32;
|
||||
case TYPE_U16: return TYPE_S16;
|
||||
case TYPE_U8: return TYPE_S8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue