mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
intel/isl: warn about excessive num_elements only once
Commitf3c7e14f09("isl: don't assert(num_elements > (1ull << 27))") replaced an assert(num_elements <= (1 << 27)) with a mesa_logw(). At that time, the only games I knew that printed this message (Marvel's Spider-Man Remastered and Assassin's Creed: Valhalla) only printed it a few times during startup. It turns out that The Last Of Us Part II Remastered constantly prints this message during gameplay. Downgrade it to mesa_logw_once() so we don't spam the terminal, don't fill disks with log messages and don't make things slower in general. Fixes:f3c7e14f09("isl: don't assert(num_elements > (1ull << 27))") Reviewed-by: Dylan Baker <dylan.c.baker@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41251>
This commit is contained in:
parent
c4b6df29bf
commit
4167b7d51f
1 changed files with 2 additions and 2 deletions
|
|
@ -1063,8 +1063,8 @@ isl_genX(buffer_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
* newer are enough to fit 32bit num_elements.
|
||||
*/
|
||||
if (num_elements > (1 << 27)) {
|
||||
mesa_logw("%s: num_elements is too big: %"PRIu64" (buffer size: %"PRIu64")\n",
|
||||
__func__, num_elements, buffer_size);
|
||||
mesa_logw_once("%s: num_elements is too big: %"PRIu64" (buffer size: %"PRIu64")\n",
|
||||
__func__, num_elements, buffer_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue