summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-09-18 00:28:06 +1000
committerDave Airlie <airlied@redhat.com>2010-09-18 00:28:06 +1000
commitdab2a7660a407364a33337327743b56ea9701d9b (patch)
treed1d52531aa7da3733dbda59f49b13868231efc64
parentd0502297e02074d0b022c1e3e33319829b750a7e (diff)
r600g: oops got the use_mem_constant the wrong way around.
this fixes evergreen gears again.
-rw-r--r--src/gallium/winsys/r600/drm/radeon_ws_bo.c2
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 ccaedb4777..8114526a14 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;