From: Brian Paul Date: Mon, 30 Apr 2012 22:01:08 +0000 (-0600) Subject: svga: specify 4-byte aligned vertex elements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c66dc0ea8ecfa3048189648b5092de99a943d82d;p=mesa.git svga: specify 4-byte aligned vertex elements We haven't found a case where this is needed, but it would be prudent for some hosts, per Jose. Reviewed-by: José Fonseca --- diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 11655b394c8..5a8434a04dc 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -238,8 +238,9 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_GLSL_FEATURE_LEVEL: case PIPE_CAP_VERTEX_BUFFER_OFFSET_4BYTE_ALIGNED_ONLY: case PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLY: - case PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY: return 0; + case PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY: + return 1; default: debug_printf("Unexpected PIPE_CAP_ query %u\n", param);