svga: remove unused svga_shader::use_sm30 field, add comments
authorBrian Paul <brianp@vmware.com>
Wed, 8 Aug 2012 15:39:36 +0000 (09:39 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Aug 2012 15:39:36 +0000 (09:39 -0600)
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_tgsi.h

index 7567431ad490dcedc8340887f55ee44f141f5caa..f243b4f5da6cf4b53b734a6a20070bbf253b6b70 100644 (file)
@@ -57,9 +57,7 @@ struct svga_shader
 
    struct svga_shader_result *results;
 
-   unsigned id;
-
-   boolean use_sm30;
+   unsigned id;  /**< for debugging only */
 };
 
 struct svga_fragment_shader
index bb0c6d0e029bfc515d3d6638032d1da4db857ad5..0e06dbf9919437baf20dbc405af203e0afbddf3f 100644 (file)
@@ -79,6 +79,12 @@ struct svga_compile_key {
    int8_t generic_remap_table[MAX_GENERIC_VARYING];
 };
 
+
+/**
+ * A single TGSI shader may be compiled into different variants of
+ * SVGA3D shaders depending on the compile key.  Each user shader
+ * will have a linked list of these results.
+ */
 struct svga_shader_result
 {
    const struct svga_shader *shader;
@@ -92,7 +98,8 @@ struct svga_shader_result
    const unsigned *tokens;
    unsigned nr_tokens;
 
-   /* SVGA Shader ID:
+   /** Per-context shader identifier used with SVGA_3D_CMD_SHADER_DEFINE,
+    * SVGA_3D_CMD_SET_SHADER and SVGA_3D_CMD_SHADER_DESTROY.
     */
    unsigned id;