st/nine: Fix ps multisample check
authorAxel Davy <axel.davy@ens.fr>
Wed, 19 Oct 2016 19:08:57 +0000 (21:08 +0200)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:44:20 +0000 (23:44 +0100)
We want to use centroid for nonmaskable
multisampling as well.

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

index 9a615b7b205f009f01b7f06345235eeca93f316d..9ff3d51e977b611bcf833356fe87699ba9c636cc 100644 (file)
@@ -94,7 +94,7 @@ NinePixelShader9_UpdateKey( struct NinePixelShader9 *ps,
     }
 
     /* centroid interpolation automatically used for color ps inputs */
-    if (state->rt[0]->desc.MultiSampleType > 1)
+    if (state->rt[0]->base.info.nr_samples)
         key |= ((uint64_t)1) << 34;
 
     if (unlikely(ps->byte_code.version < 0x14)) {