diff options
Diffstat (limited to 'src/glsl/lower_packing_builtins.cpp')
-rw-r--r-- | src/glsl/lower_packing_builtins.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/glsl/lower_packing_builtins.cpp b/src/glsl/lower_packing_builtins.cpp index c8bf68be829..19eeaa3775c 100644 --- a/src/glsl/lower_packing_builtins.cpp +++ b/src/glsl/lower_packing_builtins.cpp @@ -230,8 +230,8 @@ private: if (op_mask & LOWER_PACK_USE_BFI) { return bitfield_insert(bit_and(swizzle_x(u), constant(0xffffu)), swizzle_y(u), - constant(16), - constant(16)); + constant(16u), + constant(16u)); } /* return (u.y << 16) | (u.x & 0xffff); */ @@ -261,9 +261,9 @@ private: return bitfield_insert(bitfield_insert( bitfield_insert( bit_and(swizzle_x(u), constant(0xffu)), - swizzle_y(u), constant(8), constant(8)), - swizzle_z(u), constant(16), constant(8)), - swizzle_w(u), constant(24), constant(8)); + swizzle_y(u), constant(8u), constant(8u)), + swizzle_z(u), constant(16u), constant(8u)), + swizzle_w(u), constant(24u), constant(8u)); } /* uvec4 u = UVEC4_RVAL & 0xff */ |