summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
index 6561155bfd7..805d9fd4b24 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
@@ -199,12 +199,17 @@ emit_store(
break;
case TGSI_SAT_ZERO_ONE:
- /* assert( 0 ); */
+ value = lp_build_max(&bld->base, value, bld->base.zero);
+ value = lp_build_min(&bld->base, value, bld->base.one);
break;
case TGSI_SAT_MINUS_PLUS_ONE:
- assert( 0 );
+ value = lp_build_max(&bld->base, value, lp_build_const_uni(bld->base.type, -1.0));
+ value = lp_build_min(&bld->base, value, bld->base.one);
break;
+
+ default:
+ assert(0);
}
switch( reg->DstRegister.File ) {