r600/sfn: Fix test compilation with -fno-rtti
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Dec 2022 19:07:51 +0000 (20:07 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 11:01:50 +0000 (11:01 +0000)
commita6b16333c64f59eae27e99e76b665d3af98e6aed
tree2de4b7feee20ebe4cf5b9924fce79d6f9128a534
parent8646e397aecf2792aa8fe75a5db7fd7f2ac0c794
r600/sfn: Fix test compilation with -fno-rtti

79ca456b4837b3bc21cf9ef3c03c505c4b4909f6 reintroduced the use
of dynamic_cast<> in r600/sfn tests.  This breaks compilation with
-fno-rtti, as required to build against the LLVM configuration
recommended upstream.  Use static_cast<> instead to fix this.

Fixes: #7820
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20239>
src/gallium/drivers/r600/sfn/tests/sfn_valuefactory_test.cpp