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

Dave Airlie airlied at gmail.com
Tue May 9 23:10:13 UTC 2017


On 6 May 2017 at 02:35, Daniel Stone <daniel at fooishbar.org> wrote:
> 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!

unreachable() is causing compiler errors here.

Need something inside the ().

Dave.


More information about the mesa-dev mailing list