draw: add reminder comments about similar code in different files
authorBrian Paul <brianp@vmware.com>
Fri, 7 Dec 2012 19:21:08 +0000 (12:21 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 8 Dec 2012 13:58:10 +0000 (06:58 -0700)
When one function is changed, also look at the other.
Presently, there are some differences with respect to geometry
shaders and instanced drawing...

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c

index 053ea7db729821eed4e35a3c83d792903b77f511..a6f5484fcf4125364cde7d0007a46fec88eeb051 100644 (file)
@@ -51,6 +51,12 @@ struct fetch_pipeline_middle_end {
    unsigned opt;
 };
 
+
+/**
+ * Prepare/validate middle part of the vertex pipeline.
+ * NOTE: if you change this function, also look at the LLVM
+ * function llvm_middle_end_prepare() for similar changes.
+ */
 static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
                                     unsigned prim,
                                    unsigned opt,
index 9b8d343041cfa15ecb474f907e8c2409e3b34305..2230a7e5fa3510d26020d6cb9f6923e1a5582cac 100644 (file)
@@ -57,6 +57,11 @@ struct llvm_middle_end {
 };
 
 
+/**
+ * Prepare/validate middle part of the vertex pipeline.
+ * NOTE: if you change this function, also look at the non-LLVM
+ * function fetch_pipeline_prepare() for similar changes.
+ */
 static void
 llvm_middle_end_prepare( struct draw_pt_middle_end *middle,
                          unsigned in_prim,