Skip to content

zink: Fix resizable BAR detection logic

Alessandro Astone requested to merge aleasto/mesa:zink-detect-rebar into main

What does this MR do and why?

zink: Fix resizable BAR detection logic

This was broken in two ways:
* When looking for the MAX biggest_ram it was actually comparing
  a candidate against biggest_vis_ram

* mem_props.memoryTypes[] should be accessed with the memory type
  index as found in heap_map

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10341
Cc: 23.3 <mesa-stable>
Edited by Alessandro Astone

Merge request reports