From 13daa059c01d6dd05064e82cf67cba9cc5fe79db Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Mon, 23 Jan 2012 13:47:51 +0400 Subject: r600g: fix VS fog export Signed-off-by: Vadim Girlin Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index b6fd0f075fe..b4e7f8b1ec1 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1145,6 +1145,11 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi output[j].type = V_SQ_CF_ALLOC_EXPORT_WORD0_SQ_EXPORT_PARAM; } break; + case TGSI_SEMANTIC_FOG: + output[j].swizzle_y = 4; /* 0 */ + output[j].swizzle_z = 4; /* 0 */ + output[j].swizzle_w = 5; /* 1 */ + break; } break; case TGSI_PROCESSOR_FRAGMENT: -- cgit v1.2.3