i965/fs: Enable rounding mode on f2f16 ops
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 1 Jul 2017 06:14:09 +0000 (08:14 +0200)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 6 Dec 2017 07:57:18 +0000 (08:57 +0100)
commit82fa4d45e7f25f6773d4487ae93feebcf6183eeb
treed4f906599dc803c863e120dd0b49ca3844a1b127
parentd6cd14f2131a5b1c41ab777ef3ea041993de1c1b
i965/fs: Enable rounding mode on f2f16 ops

By default we don't set the rounding mode. We only set
round-to-near-even or round-to-zero mode if explicitly set from nir.

v2: Use a single SHADER_OPCODE_RND_MODE opcode taking an immediate
    with the rounding mode (Curro)

v3: Use new helper brw_rnd_mode_from_nir_op  (Jason Ekstrand)

Signed-off-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Signed-off-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_nir.cpp