projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e04526
)
st/mesa: don't ignore const buf index in src_register()
author
Brian Paul
<brianp@vmware.com>
Tue, 1 Jul 2014 13:53:16 +0000
(07:53 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 1 Jul 2014 15:42:44 +0000
(09:42 -0600)
Otherwise, if we were creating a const buffer src register for a UBO
the index into the UBO was always zero.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 13de2be4039736848518de210da7e0317ffa6457..256f356623bf98d85e4b48a4bc04b37941d0ee34 100644
(file)
--- a/
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@
-4400,7
+4400,7
@@
src_register(struct st_translate *t,
case PROGRAM_CONSTANT: /* ie, immediate */
if (index2D) {
struct ureg_src src;
- src = ureg_src_register(TGSI_FILE_CONSTANT,
0
);
+ src = ureg_src_register(TGSI_FILE_CONSTANT,
index
);
src.Dimension = 1;
src.DimensionIndex = index2D;
return src;