summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-11-25 00:38:05 +0100
committerEmil Velikov <[email protected]>2014-11-26 20:09:11 +0000
commit890f963d649cd85a0b0199f49384a41cc0e3636e (patch)
tree3fdddf1bb190704476819bc678b22d7914b248fd /src/gallium/state_trackers
parent7f74b9d47928979fdad445db1e0f249688c62991 (diff)
st/nine: propertly declare constants (v2)
Fixes "Error : CONST[20]: Undeclared source register" when running dx9_alpha_blending_material. Also artifacts on ilo. v2: also remove unused MISC_CONST Cc: "10.4" <[email protected]> Tested-by: David Heidelberg <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/nine/nine_ff.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c
index 689093319a5..184c4113026 100644
--- a/src/gallium/state_trackers/nine/nine_ff.c
+++ b/src/gallium/state_trackers/nine/nine_ff.c
@@ -189,13 +189,10 @@ static void nine_ureg_tgsi_dump(struct ureg_program *ureg, boolean override)
/* AL should contain base address of lights table. */
#define LIGHT_CONST(i) \
- ureg_src_indirect(ureg_src_register(TGSI_FILE_CONSTANT, (i)), _X(AL))
+ ureg_src_indirect(ureg_DECL_constant(ureg, i), _X(AL))
#define MATERIAL_CONST(i) \
- ureg_src_register(TGSI_FILE_CONSTANT, 19 + (i))
-
-#define MISC_CONST(i) \
- ureg_src_register(TGSI_FILE_CONSTANT, (i))
+ ureg_DECL_constant(ureg, 19 + (i))
#define _CONST(n) ureg_DECL_constant(ureg, n)