From: Axel Davy Date: Wed, 3 Dec 2014 13:47:24 +0000 (+0100) Subject: st/nine: Saturate oFog and oPts vs outputs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fb58a74a04df02904317acfbd383f53305eed67;p=mesa.git st/nine: Saturate oFog and oPts vs outputs According to docs and Wine, these two vs outputs have to be saturated. Reviewed-by: Ilia Mirkin Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 79b0804c754..735f56b29f1 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -1011,13 +1011,13 @@ _tx_dst_param(struct shader_translator *tx, const struct sm1_dst_param *param) case 1: if (ureg_dst_is_undef(tx->regs.oFog)) tx->regs.oFog = - ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_FOG, 0); + ureg_saturate(ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_FOG, 0)); dst = tx->regs.oFog; break; case 2: if (ureg_dst_is_undef(tx->regs.oPts)) tx->regs.oPts = - ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_PSIZE, 0); + ureg_saturate(ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_PSIZE, 0)); dst = tx->regs.oPts; break; default: