anv: Drop has_slm in emit_l3_config for gen11+
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 14 Mar 2021 19:54:26 +0000 (12:54 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 15 Mar 2021 18:33:25 +0000 (11:33 -0700)
commitb6875b0094c3f5fd520bc8e0ac9613d13e6b71a9
treeed5fa23cfb4b23d2b2f4f330af82f15525e19d88
parentb1ab69f467b7b10e383f3b6bb957c7e6669a3772
anv: Drop has_slm in emit_l3_config for gen11+

For some gen12+ platforms, L3 config (cfg) can be NULL leading to a
seg-fault in emit_l3_config. But, we don't use has_slm for gen11+, so
we can just avoid declaring the variable.

Reworks:
 * Drop has_slm variable for all gens (suggested-by Jason)

Ref: 633dec7163e ("anv: Set L3 full way allocation at context init if L3 cfg is NULL")
Ref: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9534
Fixes: 581e68bc99b ("anv: move L3 config emission to genX_state.c")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9589>
src/intel/vulkan/genX_state.c