mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
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:
parent
0503975363
commit
78a202157e
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue