Mesa (master): r600g: oops got the use_mem_constant the wrong way around.

Dave Airlie airlied at kemper.freedesktop.org
Fri Sep 17 06:43:00 UTC 2010


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Sep 18 00:28:06 2010 +1000

r600g: oops got the use_mem_constant the wrong way around.

this fixes evergreen gears again.

---

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

diff --git a/src/gallium/winsys/r600/drm/radeon_ws_bo.c b/src/gallium/winsys/r600/drm/radeon_ws_bo.c
index ccaedb4..8114526 100644
--- a/src/gallium/winsys/r600/drm/radeon_ws_bo.c
+++ b/src/gallium/winsys/r600/drm/radeon_ws_bo.c
@@ -13,7 +13,7 @@ struct radeon_ws_bo *radeon_ws_bo(struct radeon *radeon,
 	desc.alignment = alignment;
 	desc.usage = usage;
 
-	if (radeon->use_mem_constant && (usage & PIPE_BIND_CONSTANT_BUFFER)) {
+	if (!radeon->use_mem_constant && (usage & PIPE_BIND_CONSTANT_BUFFER)) {
 		man = radeon->mman;
 	} else if (usage & (PIPE_BIND_CONSTANT_BUFFER | PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER))
 		man = radeon->cman;




More information about the mesa-commit mailing list