diff options
author | Keith Whitwell <[email protected]> | 2009-09-12 14:16:00 -0700 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-09-12 14:16:00 -0700 |
commit | ae4704eabc237e13c9b06df9c44f31c9baca6208 (patch) | |
tree | d70220d5faa5e88ab6b257ca92c5f88c361a0efa /src/gallium/state_trackers/xorg | |
parent | 09b566e1610ec699490dc01bcea0b8c5cc44a78d (diff) |
tgsi/ureg: give ureg_DECL_constant an explicit index parameter
Avoid the need to emit all constant declarations in order. Makes
referring to a specific constant in the constant buffer much easier.
Diffstat (limited to 'src/gallium/state_trackers/xorg')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_exa_tgsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c index 978dc209c0d..b30cbff4793 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c +++ b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c @@ -247,8 +247,8 @@ create_vs(struct pipe_context *pipe, if (ureg == NULL) return 0; - const0 = ureg_DECL_constant(ureg); - const1 = ureg_DECL_constant(ureg); + const0 = ureg_DECL_constant(ureg, 0); + const1 = ureg_DECL_constant(ureg, 1); /* it has to be either a fill or a composite op */ debug_assert(is_fill ^ is_composite); |