Instead of making LMEM the special case, unify the two paths by setting up a fake drm_i915_query_memory_regions struct and filling it out based on OS queries. The important functional change here is that we now pass system memory through the same GTT size and 3/4 filter that we were using with the OS queries. This should make behavior consistent on integrated GPUs regardless of whether or not we have the memory region query API. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12433>