[Mesa-dev] [PATCH 14/61] radeonsi/gfx9: update the summary of shader stage configs
Marek Olšák
maraeo at gmail.com
Mon Apr 24 08:45:11 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.h | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index 05c0e62..6d0ac66 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -327,24 +327,29 @@ struct si_shader_selector {
uint64_t inputs_read; /* "get_unique_index" bits */
uint32_t inputs_read2; /* "get_unique_index2" bits */
};
/* Valid shader configurations:
*
* API shaders VS | TCS | TES | GS |pass| PS
* are compiled as: | | | |thru|
* | | | | |
- * Only VS & PS: VS | -- | -- | -- | -- | PS
- * With GS: ES | -- | -- | GS | VS | PS
- * With Tessel.: LS | HS | VS | -- | -- | PS
- * With both: LS | HS | ES | GS | VS | PS
+ * Only VS & PS: VS | | | | | PS
+ * GFX6 - with GS: ES | | | GS | VS | PS
+ * - with tess: LS | HS | VS | | | PS
+ * - with both: LS | HS | ES | GS | VS | PS
+ * GFX9 - with GS: -> | | | GS | VS | PS
+ * - with tess: -> | HS | VS | | | PS
+ * - with both: -> | HS | -> | GS | VS | PS
+ *
+ * -> = merged with the next stage
*/
/* Common VS bits between the shader key and the prolog key. */
struct si_vs_prolog_bits {
unsigned instance_divisors[SI_MAX_ATTRIBS];
};
/* Common VS bits between the shader key and the epilog key. */
struct si_vs_epilog_bits {
unsigned export_prim_id:1; /* when PS needs it and GS is disabled */
--
2.7.4
More information about the mesa-dev
mailing list