mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radeonsi: print the border color error message only once
Cc: 21.2 21.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13590>
(cherry picked from commit 8bfa146b80)
This commit is contained in:
parent
0c95b321cf
commit
a5bddea115
2 changed files with 8 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "radeonsi: print the border color error message only once",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4450,9 +4450,13 @@ static uint32_t si_translate_border_color(struct si_context *sctx,
|
|||
|
||||
if (i >= SI_MAX_BORDER_COLORS) {
|
||||
/* Getting 4096 unique border colors is very unlikely. */
|
||||
fprintf(stderr, "radeonsi: The border color table is full. "
|
||||
"Any new border colors will be just black. "
|
||||
"Please file a bug.\n");
|
||||
static bool printed;
|
||||
if (!printed) {
|
||||
fprintf(stderr, "radeonsi: The border color table is full. "
|
||||
"Any new border colors will be just black. "
|
||||
"This is a hardware limitation.\n");
|
||||
printed = true;
|
||||
}
|
||||
return S_008F3C_BORDER_COLOR_TYPE(V_008F3C_SQ_TEX_BORDER_COLOR_TRANS_BLACK);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue