freedreno/ir3: Clean up instrlen setup.
authorEric Anholt <eric@anholt.net>
Fri, 17 Jul 2020 21:08:43 +0000 (14:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 23:06:55 +0000 (23:06 +0000)
commitf07e25bc6d84fd5b71dd7f84e0d36166ff6aaf79
tree665ffe24cba9575f0cf6f55c54af69125a69f023
parent8f637d66cc1fae0f1536e8bfcffdf7c153055382
freedreno/ir3: Clean up instrlen setup.

We were calculating it with the gpu_id check in two places, do it once and
use ir3_compiler for the gpu_id dependency.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5990>
src/freedreno/ir3/ir3.c
src/freedreno/ir3/ir3_compiler.c
src/freedreno/ir3/ir3_compiler.h
src/freedreno/ir3/ir3_shader.c