[Mesa-dev] [PATCH v2 1/2] i965: Use helper function for modifier -> tiling

Daniel Stone daniel at fooishbar.org
Fri May 5 16:35:01 UTC 2017


Hi Emil,

On 4 May 2017 at 15:14, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 4 May 2017 at 14:43, Daniel Stone <daniel at fooishbar.org> wrote:
>> IOW, there is no change as far as I can see, but perhaps for the
>> meantime, we could use an unreachable() at the bottom of
>> modifier_to_tiling(). Would that help?
>>
> Yes the default statement and return I915_TILING_NONE in
> modifier_to_tiling() seem unreachable.
>
> unreachable or assert - I am leaning slightly towards the latter since
> it will catch fallouts in the future.
> I'll leave the decision to you and the Intel devs.
>
> In either case:
> Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

Cool, I've pushed these both now with an assert - thanks!

Cheers,
Daniel


More information about the mesa-dev mailing list