diff options
author | Marek Olšák <[email protected]> | 2015-02-28 00:30:26 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-03-16 12:54:18 +0100 |
commit | ca90cde81eb48a50286193c6bbef9ef47c70a0c6 (patch) | |
tree | d0797bcfd0afecc7090358fea37040c3c9497ec1 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | f9fd0c4a55afd97fd34d0e846000c75f5f6ecac2 (diff) |
radeonsi: implement gl_SampleMaskIn
Reviewed-by: Glenn Kennard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |