Mesa (master): st/nine: set the MUL_ZERO_WINS flag when supported

Ilia Mirkin imirkin at kemper.freedesktop.org
Tue Jan 24 01:40:30 UTC 2017


Module: Mesa
Branch: master
Commit: e1346f25bf6e40496c8db868fe03e20b900c41e4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1346f25bf6e40496c8db868fe03e20b900c41e4

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Jan 15 12:03:55 2017 -0500

st/nine: set the MUL_ZERO_WINS flag when supported

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Axel Davy <axel.davy at ens.fr>

---

 src/gallium/state_trackers/nine/nine_shader.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c
index 0a75c07..95bc6ec 100644
--- a/src/gallium/state_trackers/nine/nine_shader.c
+++ b/src/gallium/state_trackers/nine/nine_shader.c
@@ -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 */




More information about the mesa-commit mailing list