Mesa (master): i965: Fix a bad comment in gen6 sol setup.

Eric Anholt anholt at kemper.freedesktop.org
Tue Feb 21 21:31:18 UTC 2012


Module: Mesa
Branch: master
Commit: 9fa6377a75817eb9284d6dc482726943d2061489
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fa6377a75817eb9284d6dc482726943d2061489

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Feb 21 13:04:12 2012 -0800

i965: Fix a bad comment in gen6 sol setup.

This was copy and paste from the VS where I had similar code.  We're
only looking at things derived from BRW_NEW_VERTEX_PROGRAM in this
block.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Tested-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/gen6_sol.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen6_sol.c b/src/mesa/drivers/dri/i965/gen6_sol.c
index fbd8e71..187ddfd 100644
--- a/src/mesa/drivers/dri/i965/gen6_sol.c
+++ b/src/mesa/drivers/dri/i965/gen6_sol.c
@@ -94,9 +94,7 @@ brw_gs_upload_binding_table(struct brw_context *brw)
 
    uint32_t *bind;
 
-   /* CACHE_NEW_GS_PROG: Skip making a binding table if we don't use textures or
-    * pull constants.
-    */
+   /* Skip making a binding table if we don't have anything to put in it. */
    if (!has_surfaces) {
       if (brw->gs.bind_bo_offset != 0) {
 	 brw->state.dirty.brw |= BRW_NEW_GS_BINDING_TABLE;




More information about the mesa-commit mailing list