r600g: oops got the use_mem_constant the wrong way around.
authorDave Airlie <airlied@redhat.com>
Fri, 17 Sep 2010 14:28:06 +0000 (00:28 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Sep 2010 14:28:06 +0000 (00:28 +1000)
this fixes evergreen gears again.

src/gallium/winsys/r600/drm/radeon_ws_bo.c

index ccaedb4777dae96985c155096e74ab0083736b52..8114526a14aa1db732ade15f039560b306675002 100644 (file)
@@ -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;