r600/sb: use safe math optimizations when TGSI contains precise operations
authorGert Wollny <gw.fossdev@gmail.com>
Fri, 14 Sep 2018 14:56:48 +0000 (16:56 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 15 Sep 2018 18:44:53 +0000 (20:44 +0200)
commit14976817f4dbd089dc6ea1897d7006b94f30580d
treee2715e52ab33c114acfdc0f31836153f4e639e03
parentcc3b99bb48769ccd018b781338b548306af5046b
r600/sb: use safe math optimizations when TGSI contains precise operations

Fixes:
  dEQP-GLES3.functional.shaders.invariance.highp.common_subexpression_3
  dEQP-GLES3.functional.shaders.invariance.mediump.common_subexpression_3
  dEQP-GLES3.functional.shaders.invariance.lowp.common_subexpression_3

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/r600/r600_asm.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/sb/sb_bc_parser.cpp