r600/sfn: Use static_cast when type is already known
authorGert Wollny <gert.wollny@collabora.com>
Thu, 27 Feb 2020 07:12:16 +0000 (08:12 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 2 Mar 2020 19:00:23 +0000 (20:00 +0100)
commitb66170b53785dea3bfc00901277273b7bde9b561
treef646f19b62ddcabbd7856b757243ca8b8e356ffe
parent7780b50b7e7c29fef4065c1b3ba7f63edeed3028
r600/sfn: Use static_cast when type is already known

In all these cases the type was tested before based, so don't use
dynamic_casts.

Closes #2566

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Tested-by: Mauro Rossi <issor.oruam@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3974>
src/gallium/drivers/r600/sfn/sfn_instruction_cf.cpp
src/gallium/drivers/r600/sfn/sfn_instruction_export.cpp
src/gallium/drivers/r600/sfn/sfn_instruction_fetch.cpp
src/gallium/drivers/r600/sfn/sfn_instruction_misc.cpp
src/gallium/drivers/r600/sfn/sfn_ir_to_assembly.cpp
src/gallium/drivers/r600/sfn/sfn_shader_base.cpp
src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp
src/gallium/drivers/r600/sfn/sfn_valuepool.cpp