virtio/vdrm: don't spam

number of log splat would be proportional to # of enabled vdrm drivers
otherwise. silences a pile of

   MESA: info: wrong context_type: 2

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31243>
This commit is contained in:
Alyssa Rosenzweig 2024-09-18 13:27:35 -04:00 committed by Marge Bot
parent 0503975363
commit 78a202157e

View file

@ -366,10 +366,12 @@ vdrm_virtgpu_connect(int fd, uint32_t context_type)
return NULL;
}
if (caps.context_type != context_type) {
mesa_logi("wrong context_type: %u", caps.context_type);
/* If the context type does not match, return silently. This does not
* indicate anything is wrong, just that we're trying to probe the wrong
* driver. If we logged here, we would spam for every vdrm driver.
*/
if (caps.context_type != context_type)
return NULL;
}
ret = set_context(fd);
if (ret) {