ac: Don't negate strstr return values in ac_query_gpu_info
authorMichel Dänzer <mdaenzer@redhat.com>
Wed, 18 Nov 2020 16:54:19 +0000 (17:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Nov 2020 09:17:21 +0000 (09:17 +0000)
commit13b2beb41597a8c89fa1f74639c143d95931ed56
treedc1c82407134f26ab9759445ede9954fa128a5de
parent01e3f43007952c352496b2724704bfc4af1319e1
ac: Don't negate strstr return values in ac_query_gpu_info

strstr returns a pointer to the needle sub-string within the haystack
string if the latter contains the former, or NULL otherwise. So this
essentially always set info->is_pro_graphics = true, since probably no
marketing name ever contains all of these sub-strings.

Fixes: b635dff25620 "ac: fix detection of Pro graphics"
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7675>
src/amd/common/ac_gpu_info.c