[Intel-gfx] [PATCH 06/17] drm/i915: Move obj->dirty:1 to obj->flags

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Aug 23 12:01:13 UTC 2016


On ma, 2016-08-22 at 09:03 +0100, Chris Wilson wrote:
> @@ -2185,7 +2185,8 @@ struct drm_i915_gem_object {
>  	 * This is set if the object has been written to since last bound
>  	 * to the GTT
>  	 */
> -	unsigned int dirty:1;
> +#define I915_BO_DIRTY_SHIFT (I915_BO_ACTIVE_REF_SHIFT + 1)
> +#define I915_BO_DIRTY_BIT BIT(I915_BO_DIRTY_SHIFT)

Just #define I915_BO_DIRTY

With that fixed (remove in the other I915_BO_* too),

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list