i965: Select DF type for 64-bit integers on Gen < 8.
authorMatt Turner <mattst88@gmail.com>
Sat, 21 Jan 2017 03:03:21 +0000 (19:03 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 21 Jan 2017 03:12:24 +0000 (19:12 -0800)
commitd871f8e820289750832e45b8d09e80d6bce6fe7e
treea4cbc0d474140c35eeb3cf42cfd749db91caddd9
parentdb6d23cfd22fbe41e7e7de558c987c065e5f3e15
i965: Select DF type for 64-bit integers on Gen < 8.

Gen8 adds Q/UQ types. We attempted to change the types back to DF in the
generator (commit c95380c40), but an assertion added in the FP64 series
(commit e481dcc3) triggers before that code has a chance to execute.

In fact, using Q/UQ in the IR and then changing to DF in the generator
would not work in the presence of source modifiers, etc.

Fixes: d6fcede6 ("i965: Return Q and UQ types for int64 and uint64")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_nir.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp