diff options
author | Christoph Bumiller <[email protected]> | 2012-01-12 19:12:02 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-01-12 22:38:01 +0100 |
commit | 7b6881932a71b36dd47f63200c9dbee8e2b9af4f (patch) | |
tree | 3a3c87ab39164e76e6dfd5df71b18553ba501ac0 /src/gallium/drivers/nvc0/nvc0_vbo.c | |
parent | cb254b75d7d971b3f1baab45a82cedf0bd6c36c4 (diff) |
nvc0: fix submission of VertexID and EdgeFlag in push mode
NOTE: This is a candidate for the 8.0 branch.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_vbo.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_vbo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_vbo.c b/src/gallium/drivers/nvc0/nvc0_vbo.c index 7cf69910e6a..3e95d509f99 100644 --- a/src/gallium/drivers/nvc0/nvc0_vbo.c +++ b/src/gallium/drivers/nvc0/nvc0_vbo.c @@ -263,7 +263,8 @@ nvc0_vertex_arrays_validate(struct nvc0_context *nvc0) struct nvc0_vertex_element *ve; unsigned i; - if (unlikely(vertex->need_conversion || NVC0_USING_EDGEFLAG(nvc0))) { + if (unlikely(vertex->need_conversion) || + unlikely(nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS)) { nvc0->vbo_fifo = ~0; nvc0->vbo_user = 0; } else { |