[Intel-gfx] [PATCH 1/2] drm/i915: introduce & use i915_gem_object_mark_dirty()

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 28 16:34:55 UTC 2016


On Thu, Apr 28, 2016 at 05:26:20PM +0100, Dave Gordon wrote:
> This just hides the existing obj->dirty flag inside a trivial inline
> setter, to discourage non-GEM code from looking too closely.
> 
> Existing code that sets obj->dirty is then changed to use the function
> instead.

I prefer set_dirty, unset_dirty, is_dirty which is what I used in my
patches.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list