st/nine: set the MUL_ZERO_WINS flag when supported
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Jan 2017 17:03:55 +0000 (12:03 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 24 Jan 2017 01:37:10 +0000 (20:37 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_shader.c

index 0a75c07fa7e147487e05a78f6ff2f0fff78989aa..95bc6ec90353bab08f1d47360a570faa6610943c 100644 (file)
@@ -3564,6 +3564,9 @@ nine_translate_shader(struct NineDevice9 *device, struct nine_shader_info *info,
             ureg_property(tx->ureg, TGSI_PROPERTY_FS_COORD_PIXEL_CENTER, TGSI_FS_COORD_PIXEL_CENTER_INTEGER);
     }
 
+    if (GET_CAP(TGSI_MUL_ZERO_WINS))
+       ureg_property(tx->ureg, TGSI_PROPERTY_MUL_ZERO_WINS, 1);
+
     while (!sm1_parse_eof(tx) && !tx->failure)
         sm1_parse_instruction(tx);
     tx->parse++; /* for byte_size */