[Mesa-dev] [PATCH] r600g: Added a missing call to r600_bc_add_literal().

Tilman Sauerbeck tilman at code-monkey.de
Mon Nov 15 11:20:31 PST 2010


Signed-off-by: Tilman Sauerbeck <tilman at code-monkey.de>
---

This patch fixes a "literal not added correctly" error for
Heroes of Newerth in the main menu.

I don't fully understand the code; please review.


 src/gallium/drivers/r600/r600_shader.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index f6153c0..501e4af 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -926,6 +926,11 @@ static int tgsi_split_constant(struct r600_shader_ctx *ctx, struct r600_bc_alu_s
 				if (r)
 					return r;
 			}
+
+			r = r600_bc_add_literal(ctx->bc, ctx->value);
+			if (r)
+				return r;
+
 			r600_src[i].sel = treg;
 			r600_src[i].rel =0;
 			j--;
-- 
1.7.3.1



More information about the mesa-dev mailing list