summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-07-14 14:33:49 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-07-14 14:33:49 +0200
commit8be9149fb3f4fb295eaaa0c371bfa9552e1945ce (patch)
tree6d102de10bd581bf41c689a8c907a62e31f9de86
parent846131e50efb2cb69dbd8d4dd41e7eb6b3c7adf4 (diff)
radeonsi: update a comment for merged shaders
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 5a613f6bda..bbedce8872 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -7477,7 +7477,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
@@ -7486,6 +7486,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. */