Skip to content

agxv: fix map_buffer crash

Russell Greene requested to merge russelltg/mesa:map_memory_common into agxv/main

!227 (merged) changed the MapMemory implementations to be MapMemory2KHR implementations instead, with the comment that the former will be delegated to the latter. However, it seems that the one internal usage of agxv_MapMemory was not updated to call the common code that properly delegates to agxv_MapMemory2KHR. This fixes this last internal usage

Without this change, I was getting a crash in this function due to agxv_MapMemory being null. The other option here would be to change the call to be a agxv_MapMemory2KHR call.

Note that I'm new to contributing to mesa so apologies if I went about this entirely in the wrong way 😄. Cheers!

Edited by Russell Greene

Merge request reports