Commit 890f963d authored by Axel Davy's avatar Axel Davy Committed by Emil Velikov

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" <>
Tested-by: David Heidelberg's avatarDavid Heidelberg <>
Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <>
Signed-off-by: Axel Davy's avatarAxel Davy <>
parent 7f74b9d4
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment