projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c2912e
)
softpipe: Map GS constants, too.
author
Michal Krol
<michal@vmware.com>
Tue, 23 Mar 2010 15:21:03 +0000
(16:21 +0100)
committer
Michal Krol
<michal@vmware.com>
Mon, 29 Mar 2010 14:06:10 +0000
(16:06 +0200)
src/gallium/drivers/softpipe/sp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_state_fs.c
b/src/gallium/drivers/softpipe/sp_state_fs.c
index 2b089c2831642108d13fd71528d4c5abaa12703b..d6f3229bed78b1c5d5f346e42a44b4c780238071 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_state_fs.c
+++ b/
src/gallium/drivers/softpipe/sp_state_fs.c
@@
-181,9
+181,8
@@
softpipe_set_constant_buffer(struct pipe_context *pipe,
/* note: reference counting */
pipe_buffer_reference(&softpipe->constants[shader][index], constants);
- if(shader == PIPE_SHADER_VERTEX) {
- draw_set_mapped_constant_buffer(softpipe->draw, PIPE_SHADER_VERTEX, index,
- data, size);
+ if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_GEOMETRY) {
+ draw_set_mapped_constant_buffer(softpipe->draw, shader, index, data, size);
}
softpipe->mapped_constants[shader][index] = data;