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

Author: Dave Airlie <airl...@redhat.com>
Date:   Fri Oct  1 13:48:10 2010 +1000

r600g: sync vertex/texture cache on resources on evergreen

this gets rid of lots of the instability on evergreen,
which isn't surprising since it really broken not to flush caches.

---

 src/gallium/winsys/r600/drm/evergreen_hw_context.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c 
b/src/gallium/winsys/r600/drm/evergreen_hw_context.c
index 3af299c..1b2c265 100644
--- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c
+++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c
@@ -431,8 +431,8 @@ static int evergreen_state_resource_init(struct 
r600_context *ctx, u32 offset)
        struct r600_reg r600_shader_resource[] = {
                {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030000_RESOURCE0_WORD0, 0, 0},
                {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030004_RESOURCE0_WORD1, 0, 0},
-               {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030008_RESOURCE0_WORD2, 1, 0},
-               {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_03000C_RESOURCE0_WORD3, 1, 0},
+               {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030008_RESOURCE0_WORD2, 1, S_0085F0_TC_ACTION_ENA(1) | 
S_0085F0_VC_ACTION_ENA(1)},
+               {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_03000C_RESOURCE0_WORD3, 1, S_0085F0_TC_ACTION_ENA(1) | 
S_0085F0_VC_ACTION_ENA(1)},
                {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030010_RESOURCE0_WORD4, 0, 0},
                {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030014_RESOURCE0_WORD5, 0, 0},
                {PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET, 
R_030018_RESOURCE0_WORD6, 0, 0},

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to