mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
intel/compiler: Fix array bounds warning on GCC 10.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
3abfde13be
commit
e45ea781f8
1 changed files with 2 additions and 0 deletions
|
|
@ -1273,6 +1273,7 @@ BRW_IA16_ADDR_IMM(send_dst, -1, -1, 62, 56, 52)
|
|||
static inline uint64_t
|
||||
brw_inst_bits(const brw_inst *inst, unsigned high, unsigned low)
|
||||
{
|
||||
assert(high < 128);
|
||||
assert(high >= low);
|
||||
/* We assume the field doesn't cross 64-bit boundaries. */
|
||||
const unsigned word = high / 64;
|
||||
|
|
@ -1294,6 +1295,7 @@ brw_inst_bits(const brw_inst *inst, unsigned high, unsigned low)
|
|||
static inline void
|
||||
brw_inst_set_bits(brw_inst *inst, unsigned high, unsigned low, uint64_t value)
|
||||
{
|
||||
assert(high < 128);
|
||||
assert(high >= low);
|
||||
const unsigned word = high / 64;
|
||||
assert(word == low / 64);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue