OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6364491
)
swr: always enable adding start/base vertex to gl_VertexId
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 13 Nov 2016 02:02:20 +0000
(21:02 -0500)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Wed, 16 Nov 2016 01:26:29 +0000
(20:26 -0500)
Fixes gl-3.2-basevertex-vertexid
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_state.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/swr/swr_state.cpp
b/src/gallium/drivers/swr/swr_state.cpp
index
c1beeeb
..
d64211e
100644
(file)
--- a/
src/gallium/drivers/swr/swr_state.cpp
+++ b/
src/gallium/drivers/swr/swr_state.cpp
@@
-455,6
+455,7
@@
swr_create_vertex_elements_state(struct pipe_context *pipe,
assert(num_elements <= PIPE_MAX_ATTRIBS);
velems = CALLOC_STRUCT(swr_vertex_element_state);
if (velems) {
+ velems->fsState.bVertexIDOffsetEnable = true;
velems->fsState.numAttribs = num_elements;
for (unsigned i = 0; i < num_elements; i++) {
// XXX: we should do this keyed on the VS usage info