[Mesa-dev] [PATCH 06/36] st/nine: Fix ps multisample check
Axel Davy
axel.davy at ens.fr
Wed Dec 7 22:30:29 UTC 2016
We want to use centroid for nonmaskable
multisampling as well.
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
src/gallium/state_trackers/nine/pixelshader9.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/nine/pixelshader9.h b/src/gallium/state_trackers/nine/pixelshader9.h
index 9a615b7..9ff3d51 100644
--- a/src/gallium/state_trackers/nine/pixelshader9.h
+++ b/src/gallium/state_trackers/nine/pixelshader9.h
@@ -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)) {
--
2.10.2
More information about the mesa-dev
mailing list