etnaviv: Reduce max offset to available hardware bits.
authorMathias Fröhlich <mathias.froehlich@web.de>
Thu, 6 Sep 2018 14:13:42 +0000 (16:13 +0200)
committerMathias Fröhlich <mathias.froehlich@web.de>
Mon, 10 Sep 2018 05:59:31 +0000 (07:59 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/gallium/drivers/etnaviv/etnaviv_screen.c

index d838cd28c8854bee7bf2733019ebe9186937b273..fb51aa5f4e8d7542232f0d6814ebf02b61d7d96a 100644 (file)
@@ -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: