crocus: Replace devinfo->ver[x10] checks with GFX_VER[x10]
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Oct 2021 23:38:56 +0000 (16:38 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 22 Oct 2021 06:19:15 +0000 (06:19 +0000)
commit1429feaf293e5a34dd32c632b46931f15e769bb6
tree1163ed618f92e5d62ba9cda01052127680e35512
parent1561d0126a569f76b1adbdd1a5e8ec79f9577450
crocus: Replace devinfo->ver[x10] checks with GFX_VER[x10]

These files are compiled per-generation, so we can just use the #define
instead of the actual field dereference to allow the compiler to dead
code eliminate whole paths.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13475>
src/gallium/drivers/crocus/crocus_state.c