Mesa (master): i965: Set up the constant buffer on gen6 when it's needed.

Eric Anholt anholt at kemper.freedesktop.org
Tue Oct 26 21:12:24 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Oct 26 13:15:01 2010 -0700

i965: Set up the constant buffer on gen6 when it's needed.

This was slightly confused because gen6_wm_constants does the push
constant buffer, while brw_wm_constants does pull constants.

---

 src/mesa/drivers/dri/i965/brw_state_upload.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
index 73940a5..f3b6a90 100644
--- a/src/mesa/drivers/dri/i965/brw_state_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
@@ -128,6 +128,7 @@ const struct brw_tracked_state *gen6_atoms[] =
    &gen6_cc_state_pointers,
 
    &brw_vs_constants, /* Before vs_surfaces and constant_buffer */
+   &brw_wm_constants, /* Before wm_surfaces and constant_buffer */
    &gen6_wm_constants, /* Before wm_surfaces and constant_buffer */
 
    &brw_vs_surfaces,		/* must do before unit */




More information about the mesa-commit mailing list