<div dir="auto">First off, ignore the whole 48-bit heap thing. It exists to work around some weird issues with our vertex fetch hardware.  We're going to be deleting it and switching to using a different workaround (more tracking and flushing) in the near future.<div dir="auto"><br></div><div dir="auto">As far as heap sizes go, copying ANV is probably not a bad idea since it's also a UMA. We claim half of your RAM if the system has <= 4GB and 3/4 if your system has > 4GB. It's not perfect but it's been working well for 4 years now.  We also have code in there (which you're free to steal) for figuring out your available system and reporting that back to the app.</div><div dir="auto"><br></div><div dir="auto">--Jason</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 26, 2019, 16:23  <<a href="mailto:abergmeier@gmx.net">abergmeier@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>On my impossible quest  to try to implement a Vulkan driver for RPi4, I now need to implement memory information (mostly heap and types).</div>

<div>As always I shadowed what anv is doing but have no access to RPi documentation. What is the best approach to get necessary information for question like:</div>

<div>1. Need 48+bit addresses supported (would assume no since the max. memory config is 4GB)? </div>

<div>2. What can be exposed as the heap start/end/size?</div>

<div>3. Which types of memory can one support (would assume VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT and VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_CACHED_BIT)?</div>

<div> </div>

<div>I will have another look at v3d (drm) sources. Is there something to be found in v3d (gallium)?</div>

<div style="color:black;background-color:rgb(255,255,128);font-family:"Lucida Console","Courier New",Mono;text-align:right;max-width:600px;font-size:80%"> </div></div></div>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a></blockquote></div>