On 18 March 2017 at 04:24, Jason Ekstrand <ja...@jlekstrand.net> wrote:
> + /** Amount of "GPU memory" we want to advertise > + * > + * Clearly, this value is bogus since Intel is a UMA architecture. On > + * gen7 platforms, we are limited by GTT size unless we want to implement > + * fine-grained tracking and GTT splitting. On Broadwell and above we > are > + * practically unlimited. However, we will never report more than 3/4 of > + * the total system ram to try and avoid running out of RAM. > + */ > + uint64_t heap_size; > + bool supports_48bit_addresses; This reminds me the somewhat similar, yet not quite GLX_RENDERER_VIDEO_MEMORY_MESA and the implementation for i915/i965 (grep for __DRI2_RENDERER_VIDEO_MEMORY) Are we talking about the same thing here ? If so perhaps it's worth lifting some common code to src/util and/or src/intel/common ? -Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev