etnaviv: use NORMALIZE_SIGN_EXTEND
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 16 Oct 2019 04:31:17 +0000 (06:31 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 29 Nov 2019 14:06:18 +0000 (15:06 +0100)
commit06d7071bca1a44e4712ea9a7474eb25db6292b15
tree31ed0d3870071d7e19ab9bde59269efe64663564
parentca6c73f335070cfe0b3c898a33bfb14467f15da5
etnaviv: use NORMALIZE_SIGN_EXTEND

The blob driver does something like this for all vertex formats:

if (normalize) {
   if (OPENGL_ES30)
      val = VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_SIGN_EXTEND;
   else
      val = VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_ON;
} else {
   val = VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_OFF;
}

As there is no way to get to that information in gallium we always
assume OPENGL_ES30.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_translate.h