[Intel-gfx] [PATCH v2] drm/i915: Add a default case in gen7 hwsp switch-case

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 8 19:07:44 UTC 2017


Quoting Michel Thierry (2017-08-30 19:01:15)
> Gen7 won't get any new engines, and we already added VCS2 there to just
> silence gcc's not handled in switch warnings.
> 
> Use a default case instead, otherwise we will need to keep adding extra
> cases if changes happen in the future.
> 
> v2: Since reaching the default case is impossible, use GEM_BUG_ON (Chris).
> 
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Michel Thierry <michel.thierry at intel.com>

Reviewed and pushed, thanks.
-Chris


More information about the Intel-gfx mailing list