radeonsi: implement gl_SampleMaskIn
authorMarek Olšák <marek.olsak@amd.com>
Fri, 27 Feb 2015 23:30:26 +0000 (00:30 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 16 Mar 2015 11:54:18 +0000 (12:54 +0100)
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
docs/GL3.txt
src/gallium/drivers/radeonsi/si_shader.c

index 289dd36fcad91698f76c5cf38a9392f80442bbdc..267740a7bb29ea0fd4625bfc9f39b6e6bfcac7b8 100644 (file)
@@ -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)
index 0ef58a7310e7fd5be8898d22ce7734df84689fd7..e70a3181bfeec746b42232d3b66adc4d863c5641 100644 (file)
@@ -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;