From: Mathias Fröhlich Date: Thu, 6 Sep 2018 14:13:42 +0000 (+0200) Subject: etnaviv: Reduce max offset to available hardware bits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fece204c02e437811732c223cd158f82c4dd916;p=mesa.git etnaviv: Reduce max offset to available hardware bits. Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger Signed-off-by: Mathias Fröhlich --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index d838cd28c88..fb51aa5f4e8 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -310,6 +310,8 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE: return 128; + case PIPE_CAP_MAX_VERTEX_ELEMENT_SRC_OFFSET: + return 255; /* Texturing. */ case PIPE_CAP_MAX_TEXTURE_2D_LEVELS: