From ca90cde81eb48a50286193c6bbef9ef47c70a0c6 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 28 Feb 2015 00:30:26 +0100 Subject: radeonsi: implement gl_SampleMaskIn Reviewed-by: Glenn Kennard --- src/gallium/drivers/radeonsi/si_shader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 0ef58a7310e..e70a3181bfe 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -643,6 +643,10 @@ static void declare_system_value( break; } + case TGSI_SEMANTIC_SAMPLEMASK: + value = LLVMGetParam(radeon_bld->main_fn, SI_PARAM_SAMPLE_COVERAGE); + break; + default: assert(!"unknown system value"); return; -- cgit v1.2.3