summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2009-09-03 12:44:15 -0400
committerZack Rusin <zackr@vmware.com>2009-09-03 12:44:15 -0400
commit5643942517f05c7a986d208be4402927a111555e (patch)
tree8d431afea9bea99641a1a2d2fd6332ae43af02e0 /src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
parent07f9ad5c322ce409fdd4b86e3913f7cc085520b5 (diff)
st/xorg: cleanup and adjust to the changes in the ureg code
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_exa_tgsi.c')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_exa_tgsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
index 38b3a3aaab..f9b10d8569 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
@@ -165,8 +165,8 @@ create_fs(struct pipe_context *pipe,
TGSI_SEMANTIC_COLOR,
0);
- src_sampler = ureg_DECL_sampler(ureg);
if (is_composite) {
+ src_sampler = ureg_DECL_sampler(ureg, 0);
src_pos = ureg_DECL_fs_input(ureg,
TGSI_SEMANTIC_POSITION,
0,
@@ -180,7 +180,7 @@ create_fs(struct pipe_context *pipe,
}
if ((fs_traits & FS_MASK)) {
- mask_sampler = ureg_DECL_sampler(ureg);
+ mask_sampler = ureg_DECL_sampler(ureg, 1);
mask_pos = ureg_DECL_fs_input(ureg,
TGSI_SEMANTIC_POSITION,
1,
@@ -188,7 +188,7 @@ create_fs(struct pipe_context *pipe,
}
#if 0 /* unused right now */
- dst_sampler = ureg_DECL_sampler(ureg);
+ dst_sampler = ureg_DECL_sampler(ureg, 2);
dst_pos = ureg_DECL_fs_input(ureg,
TGSI_SEMANTIC_POSITION,
2,