radeonsi: Handle TGSI_SEMANTIC_FOG.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 6 Sep 2012 15:53:04 +0000 (17:53 +0200)
committerMichel Dänzer <michel@daenzer.net>
Fri, 7 Sep 2012 14:12:04 +0000 (16:12 +0200)
Fixes exponential fog. The pixel shaders for linear fog seem to get
miscompiled still somehow.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 1c330b5fd3ad6d8abd6df73842818da05d532d93..9fc344607cbc4c84bf9731337b5706b1339d4e5d 100644 (file)
@@ -538,6 +538,7 @@ static void si_llvm_emit_epilogue(struct lp_build_tgsi_context * bld_base)
                                        color_count++;
                                }
                                break;
+                       case TGSI_SEMANTIC_FOG:
                        case TGSI_SEMANTIC_GENERIC:
                                target = V_008DFC_SQ_EXP_PARAM + param_count;
                                shader->output[i].param_offset = param_count;