[Mesa-dev] [PATCH 12/25] r600g: increase array base for exported parameters

Dave Airlie airlied at gmail.com
Wed Jan 29 16:42:13 PST 2014


From: Dave Airlie <airlied at redhat.com>

Trivial fix to Vadim's code.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/drivers/r600/r600_shader.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index d62267f..a3ca43a 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1221,6 +1221,9 @@ static int generate_gs_copy_shader(struct r600_context *rctx,
 			output.swizzle_z = 4; /* 0 */
 			output.swizzle_w = 5; /* 1 */
 			break;
+		default:
+			output.array_base = next_param++;
+			break;
 		}
 		r600_bytecode_add_output(ctx.bc, &output);
 		if (output.type == V_SQ_CF_ALLOC_EXPORT_WORD0_SQ_EXPORT_PARAM)
-- 
1.8.3.1



More information about the mesa-dev mailing list