mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
hk: make border colour lint quieter
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658>
This commit is contained in:
parent
81e005c18b
commit
ba4bab0584
1 changed files with 3 additions and 7 deletions
|
|
@ -193,10 +193,10 @@ hk_CreateSampler(VkDevice device,
|
|||
/* Sanity check the noborder setting. There's no way to recover from it being
|
||||
* wrong but at least we can make noise to lint for errors in the driconf.
|
||||
*/
|
||||
if (HK_PERF(dev, NOBORDER) && custom_border) {
|
||||
static bool warned_custom_border = false;
|
||||
if (HK_PERF(dev, NOBORDER) && custom_border && !warned_custom_border) {
|
||||
fprintf(stderr, "custom border colour used, but emulation is disabled\n");
|
||||
fprintf(stderr, "border %u\n", info->borderColor);
|
||||
fprintf(stderr, "rgba4 workaround: %u\n", workaround_rgba4);
|
||||
fprintf(stderr, "unnorm %X\n", info->unnormalizedCoordinates);
|
||||
fprintf(stderr, "compare %X\n", info->compareEnable);
|
||||
fprintf(stderr, "value: %X, %X, %X, %X\n",
|
||||
|
|
@ -206,11 +206,7 @@ hk_CreateSampler(VkDevice device,
|
|||
sampler->vk.border_color_value.uint32[3]);
|
||||
fprintf(stderr, "wraps: %X, %X, %X\n", info->addressModeU,
|
||||
info->addressModeV, info->addressModeW);
|
||||
|
||||
/* Blow up debug builds so we can fix the driconf. Allow the rare
|
||||
* misrendering on release builds.
|
||||
*/
|
||||
assert(0);
|
||||
warned_custom_border = true;
|
||||
}
|
||||
|
||||
struct agx_sampler_packed samp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue