On 05/25/2013 12:26 PM, Ben Widawsky wrote: > The original pte_encode function needed the dev argument so we could do > platform specific handling via IS_GENX, etc. With the merging of a pte > encoding function there should never been a need to quirk away gen > specific details. > > The patch doesn't do much but makes the upcoming reworks in gtt/ppgtt/mm > slightly (albeit, ever so) easier. > > CC: Kenneth Graunke <kenneth at whitecape.org> > Signed-off-by: Ben Widawsky <ben at bwidawsk.net> Seems reasonable to me - just swap out pte_encode based on gen, rather than looking at gen in the function. Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>