st/nine: Remove useless code in ff ps
authorAxel Davy <axel.davy@ens.fr>
Sun, 27 Nov 2016 12:10:52 +0000 (13:10 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:44:21 +0000 (23:44 +0100)
Current is already initialized to Diffuse.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_ff.c

index 7a099864da015d37b93983c1d18e740958057dc8..c3245a302ee4b792cef8f61c17e60f18ce573791 100644 (file)
@@ -1375,11 +1375,6 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
 
     oCol = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0);
 
-    if (key->ts[0].colorop == D3DTOP_DISABLE &&
-        key->ts[0].alphaop == D3DTOP_DISABLE)
-        ureg_MOV(ureg, ps.rCur, ps.vC[0]);
-    /* Or is it undefined then ? */
-
     /* Run stages.
      */
     for (s = 0; s < 8; ++s) {