mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
i965: Use ull immediates in brw_inst_bits
This fixes a regression introduced in b1a83b5d1 that caused basically all
shaders to fail to compile on 32-bit platforms.
Reported-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
e4c1221d36
commit
9d703de85a
1 changed files with 2 additions and 2 deletions
|
|
@ -694,7 +694,7 @@ brw_inst_bits(const brw_inst *inst, unsigned high, unsigned low)
|
|||
high %= 64;
|
||||
low %= 64;
|
||||
|
||||
const uint64_t mask = (~0ul >> (64 - (high - low + 1)));
|
||||
const uint64_t mask = (~0ull >> (64 - (high - low + 1)));
|
||||
|
||||
return (inst->data[word] >> low) & mask;
|
||||
}
|
||||
|
|
@ -713,7 +713,7 @@ brw_inst_set_bits(brw_inst *inst, unsigned high, unsigned low, uint64_t value)
|
|||
high %= 64;
|
||||
low %= 64;
|
||||
|
||||
const uint64_t mask = (~0ul >> (64 - (high - low + 1))) << low;
|
||||
const uint64_t mask = (~0ull >> (64 - (high - low + 1))) << low;
|
||||
|
||||
/* Make sure the supplied value actually fits in the given bitfield. */
|
||||
assert((value & (mask >> low)) == value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue