fix: gallivm: limit usage of LLVMContextSetOpaquePointers() to LLVM 15

LLVMContextSetOpaquePointers() was a temporary workaround offered to
allow transitioning to opaque pointers. Mesa is ready for this now with
recent versions of LLVM (16+). Therefore we limit the workaround of
using LLVMContextSetOpaquePointers() to LLVM 15 now, that this C
interface was removed in LLVM 17.

Suggested-by: Dave Airlie <>
Reviewed-by: Roland Scheidegger <>
Part-of: <>
Change-Id: I544e7e09f234405adf53bcd4d33dcf67db68e601
Commit-Queue: Auto-Submit <>
Reviewed-by: John Bauman <>
Fuchsia-Auto-Submit: Josh Gargus <>
7 files changed