radeonsi: update a comment for merged shaders
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 14 Jul 2017 12:33:49 +0000 (14:33 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 27 Jul 2017 19:16:45 +0000 (21:16 +0200)
Reviewed: Marek Olšák <marek.olsak@amd.com>

src/gallium/drivers/radeonsi/si_shader.c

index 98f2be76ddd2fa013e01740652dc519110575b56..4a36923ae8c1bd5f588a66b6f579b11dc59364bd 100644 (file)
@@ -7364,7 +7364,7 @@ int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm,
                if (r)
                        return r;
        } else {
-               /* The shader consists of 2-3 parts:
+               /* The shader consists of several parts:
                 *
                 * - the middle part is the user shader, it has 1 variant only
                 *   and it was compiled during the creation of the shader
@@ -7373,6 +7373,10 @@ int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm,
                 * - the epilog part is inserted at the end
                 *
                 * The prolog and epilog have many (but simple) variants.
+                *
+                * Starting with gfx9, geometry and tessellation control
+                * shaders also contain the prolog and user shader parts of
+                * the previous shader stage.
                 */
 
                /* Copy the compiled TGSI shader data over. */