ac/rgp: make the max gap between shader code a warning
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 23 Feb 2021 14:02:05 +0000 (15:02 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 5 Mar 2021 13:10:11 +0000 (13:10 +0000)
commite5b1e645e790fdc26cf63540814375ce24af9cb0
tree6c660e41d96db32f4d94d9f243502266e3ba5745
parent0e97d817f520653548f1dee1db28bd2d92d28027
ac/rgp: make the max gap between shader code a warning

For radeonsi the shaders don't live in the same BOs, so they're
unlikely to be less that 0x1000 bytes apart.

So this commit bumps the threshold to 0x10000 and warns once
when hitting it.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9277>
src/amd/common/ac_rgp_elf_object_pack.c