[Mesa-dev] [PATCH 07/16] i965: Rename brw_bo_map() -> brw_bo_map_cpu()

Chris Wilson chris at chris-wilson.co.uk
Thu May 25 06:26:35 UTC 2017


On Wed, May 24, 2017 at 01:04:49PM -0700, Matt Turner wrote:
> I'm going to make a new function named brw_bo_map() in a later patch
> that is responsible for choosing the mapping type, so this patch clears
> the way.

map_cpu was chosen when we only had the two types of cpu (wb, linear) or
gtt (wc, fenced). If I was chosing a fresh coat of paint I would start
with map_wb, map_wc, [map_wt], map_gtt. But since this is just encoding
a type parameter into the name, it is just a stepping stone to a final
API, so quite immaterial :)
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the mesa-dev mailing list