From: Axel Davy Date: Thu, 21 Jul 2022 16:44:56 +0000 (+0200) Subject: frontend/nine: Apply writemask to pointsize X-Git-Tag: upstream/23.3.3~9666 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9923a31945673dc40216a94c4fd3afa93d1d9efc;p=platform%2Fupstream%2Fmesa.git frontend/nine: Apply writemask to pointsize Seen when working on the code. It seems like a sane thing to do, but it might be wrong. Signed-off-by: Axel Davy Part-of: --- diff --git a/src/gallium/frontends/nine/nine_shader.c b/src/gallium/frontends/nine/nine_shader.c index b62bd37..c7e9a7a 100644 --- a/src/gallium/frontends/nine/nine_shader.c +++ b/src/gallium/frontends/nine/nine_shader.c @@ -3825,8 +3825,8 @@ static void parse_shader(struct shader_translator *tx) if (IS_VS && !ureg_dst_is_undef(tx->regs.oPts)) { struct ureg_dst oPts = ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_PSIZE, 0); - ureg_MAX(tx->ureg, tx->regs.oPts, ureg_src(tx->regs.oPts), ureg_imm1f(tx->ureg, info->point_size_min)); - ureg_MIN(tx->ureg, oPts, ureg_src(tx->regs.oPts), ureg_imm1f(tx->ureg, info->point_size_max)); + ureg_MAX(tx->ureg, ureg_writemask(tx->regs.oPts, TGSI_WRITEMASK_X), ureg_src(tx->regs.oPts), ureg_imm1f(tx->ureg, info->point_size_min)); + ureg_MIN(tx->ureg, ureg_writemask(oPts, TGSI_WRITEMASK_X), ureg_src(tx->regs.oPts), ureg_imm1f(tx->ureg, info->point_size_max)); info->point_size = TRUE; }