From: Christian Gmeiner Date: Wed, 16 Oct 2019 04:31:17 +0000 (+0200) Subject: etnaviv: use NORMALIZE_SIGN_EXTEND X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06d7071bca1a44e4712ea9a7474eb25db6292b15;p=mesa.git 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 Signed-off-by: Christian Gmeiner --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_translate.h b/src/gallium/drivers/etnaviv/etnaviv_translate.h index afa5c260573..6c367d7ed8b 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_translate.h +++ b/src/gallium/drivers/etnaviv/etnaviv_translate.h @@ -302,7 +302,7 @@ translate_vertex_format_normalize(enum pipe_format fmt) /* assumes that normalization of channel 0 holds for all channels; * this holds for all vertex formats that we support */ return desc->channel[0].normalized - ? VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_ON + ? VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_SIGN_EXTEND : VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_OFF; }