svga: specify 4-byte aligned vertex elements
authorBrian Paul <brianp@vmware.com>
Mon, 30 Apr 2012 22:01:08 +0000 (16:01 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 4 May 2012 14:12:53 +0000 (08:12 -0600)
We haven't found a case where this is needed, but it would be prudent
for some hosts, per Jose.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_screen.c

index 11655b394c83ff94bdfef4a68b4b3e3fea4388b6..5a8434a04dc5c4b20733cb48d8aa8adb88f55178 100644 (file)
@@ -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);