summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-02-28 00:30:26 +0100
committerMarek Olšák <[email protected]>2015-03-16 12:54:18 +0100
commitca90cde81eb48a50286193c6bbef9ef47c70a0c6 (patch)
treed0797bcfd0afecc7090358fea37040c3c9497ec1
parentf9fd0c4a55afd97fd34d0e846000c75f5f6ecac2 (diff)
radeonsi: implement gl_SampleMaskIn
Reviewed-by: Glenn Kennard <[email protected]>
-rw-r--r--docs/GL3.txt2
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/GL3.txt b/docs/GL3.txt
index 289dd36fcad..267740a7bb2 100644
--- a/docs/GL3.txt
+++ b/docs/GL3.txt
@@ -106,7 +106,7 @@ GL 4.0, GLSL 4.00:
- Enhanced textureGather DONE (r600, radeonsi)
- Geometry shader instancing DONE (r600)
- Geometry shader multiple streams DONE ()
- - Enhanced per-sample shading DONE (r600)
+ - Enhanced per-sample shading DONE (r600, radeonsi)
- Interpolation functions DONE (r600)
- New overload resolution rules DONE
GL_ARB_gpu_shader_fp64 DONE (nvc0, softpipe)
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;