i965: Add a note explaining the data cache domain.
authorEric Anholt <eric@anholt.net>
Tue, 10 Nov 2009 21:57:29 +0000 (13:57 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 11 Nov 2009 00:00:30 +0000 (16:00 -0800)
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 0bf735c0f2c3ce57004d980f555ef4bdd104cf47..e2f0a383e752ccc39ca2e938ef89caa055281daf 100644 (file)
@@ -358,7 +358,10 @@ brw_create_constant_surface( struct brw_context *brw,
                         NULL, NULL);
 
    if (key->bo) {
-      /* Emit relocation to surface contents */
+      /* Emit relocation to surface contents.  Section 5.1.1 of the gen4
+       * bspec ("Data Cache") says that the data cache does not exist as
+       * a separate cache and is just the sampler cache.
+       */
       dri_bo_emit_reloc(bo,
                        I915_GEM_DOMAIN_SAMPLER, 0,
                        0,