summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2019-10-16 06:31:17 +0200
committerChristian Gmeiner <[email protected]>2019-11-29 15:06:18 +0100
commit06d7071bca1a44e4712ea9a7474eb25db6292b15 (patch)
tree31ed0d3870071d7e19ab9bde59269efe64663564 /src/gallium
parentca6c73f335070cfe0b3c898a33bfb14467f15da5 (diff)
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 <[email protected]> Signed-off-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_translate.h2
1 files changed, 1 insertions, 1 deletions
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;
}