mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 16:50:13 +01:00
intel/tools: fix left shift overflow on 32-bit
gcc complains:
../src/intel/tools/aub_write.c:394:53: warning: left shift count >= width of type [-Wshift-count-overflow]
394 | assert((aub->phys_addrs_allocator + size) < (1UL << 32));
| ^~
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11574>
This commit is contained in:
parent
d19cf7d572
commit
53c49ce41f
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ aub_map_ggtt(struct aub_file *aub, uint64_t virt_addr, uint64_t size)
|
|||
* receive from error2aub are page aligned.
|
||||
*/
|
||||
assert(virt_addr % 4096 == 0);
|
||||
assert((aub->phys_addrs_allocator + size) < (1UL << 32));
|
||||
assert((aub->phys_addrs_allocator + size) < (1ULL << 32));
|
||||
|
||||
/* GGTT PT */
|
||||
uint32_t ggtt_ptes = DIV_ROUND_UP(size, 4096);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue