[Mesa-dev] [PATCH] svga: specify 4-byte aligned vertex elements
Brian Paul
brianp at vmware.com
Fri May 4 07:08:17 PDT 2012
We haven't found a case where this is needed, but it would be prudent
for some hosts, per Jose.
---
src/gallium/drivers/svga/svga_screen.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 11655b3..5a8434a 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);
--
1.7.3.4
More information about the mesa-dev
mailing list