From 06d7071bca1a44e4712ea9a7474eb25db6292b15 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 16 Oct 2019 06:31:17 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/etnaviv/etnaviv_translate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2