isl/gen7: remove unneeded ISL_DEV_GEN check
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 11 Oct 2016 17:26:17 +0000 (18:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:53:25 +0000 (11:53 +0100)
commiteac752e54b5ec1b8d75d8c22c730af8c9c2a3007
treee2cc90051d177ede499a18d7ebe5b2b4524d2178
parent5b1efb65ce0282071d98bc471c8dc05dcafe08fa
isl/gen7: remove unneeded ISL_DEV_GEN check

The function gen7_format_needs_valign2 has two callers - the gen7 only
gen7_choose_valign_el() and isl_gen6_filter_tiling(). The latter of
which already guarding the invocation appropriately.

To be extra cautious add a couple of asserts alongside the removal of the
runtime check.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/isl/isl_gen7.c