[Mesa-dev] [PATCH 2/2] anv: Advertise larger heap sizes

Emil Velikov emil.l.velikov at gmail.com
Mon Mar 20 17:12:56 UTC 2017


On 18 March 2017 at 04:24, Jason Ekstrand <jason at 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


More information about the mesa-dev mailing list