Mesa (master): r600g: fix VS fog export

Dave Airlie airlied at kemper.freedesktop.org
Mon Jan 23 02:04:34 PST 2012


Module: Mesa
Branch: master
Commit: 13daa059c01d6dd05064e82cf67cba9cc5fe79db
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=13daa059c01d6dd05064e82cf67cba9cc5fe79db

Author: Vadim Girlin <vadimgirlin at gmail.com>
Date:   Mon Jan 23 13:47:51 2012 +0400

r600g: fix VS fog export

Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 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 b6fd0f0..b4e7f8b 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:



More information about the mesa-commit mailing list