summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2009-11-11 21:46:43 -0500
committerZack Rusin <[email protected]>2009-11-11 21:47:28 -0500
commit4d72f8f520e02366d695e35aa8ef09fc36f36804 (patch)
tree91d01aa239b79842348832dad112634123c44718 /src/gallium
parent72b4a7d67f90a20d774dddccbc6eed30d01a7f38 (diff)
st/xorg: use an immediate instead of a full blown const
Diffstat (limited to 'src/gallium')
-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 da4f8909f61..f8557755ef2 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
@@ -364,19 +364,19 @@ xrender_tex(struct ureg_program *ureg,
if (repeat_none) {
struct ureg_dst tmp0 = ureg_DECL_temporary(ureg);
struct ureg_dst tmp1 = ureg_DECL_temporary(ureg);
- struct ureg_src const0 = ureg_DECL_constant(ureg, 0);
+ struct ureg_src imm0 = ureg_imm4f(ureg, 0, 0, 0, 1);
ureg_SGT(ureg, tmp1, ureg_swizzle(coords,
TGSI_SWIZZLE_X,
TGSI_SWIZZLE_Y,
TGSI_SWIZZLE_X,
TGSI_SWIZZLE_Y),
- ureg_scalar(const0, TGSI_SWIZZLE_X));
+ ureg_scalar(imm0, TGSI_SWIZZLE_X));
ureg_SLT(ureg, tmp0, ureg_swizzle(coords,
TGSI_SWIZZLE_X,
TGSI_SWIZZLE_Y,
TGSI_SWIZZLE_X,
TGSI_SWIZZLE_Y),
- ureg_scalar(const0, TGSI_SWIZZLE_W));
+ ureg_scalar(imm0, TGSI_SWIZZLE_W));
ureg_MIN(ureg, tmp0, ureg_src(tmp0), ureg_src(tmp1));
ureg_MIN(ureg, tmp0, ureg_scalar(ureg_src(tmp0), TGSI_SWIZZLE_X),
ureg_scalar(ureg_src(tmp0), TGSI_SWIZZLE_Y));