cell: the test for CELL_DEBUG_FRAGMENT_OP_FALLBACK in cmd_state_fragment_ops() was...
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 19 Sep 2008 16:42:21 +0000 (10:42 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 19 Sep 2008 16:42:21 +0000 (10:42 -0600)
src/gallium/drivers/cell/spu/spu_main.c

index da2cb08972281cd2fda70fbdf28d27aecd6f16a5..d99dd12d2a03de8fda2c3bd0218f5512d5de78fb 100644 (file)
@@ -267,7 +267,7 @@ cmd_state_fragment_ops(const struct cell_command_fragment_ops *fops)
     * final code we'll always use codegen and won't even provide the
     * raw state records that the fallback code requires.
     */
-   if (spu.init.debug_flags & CELL_DEBUG_FRAGMENT_OP_FALLBACK) {
+   if ((spu.init.debug_flags & CELL_DEBUG_FRAGMENT_OP_FALLBACK) == 0) {
       spu.fragment_ops = (spu_fragment_ops_func) spu.fragment_ops_code;
    }
    /* otherwise, the default fallback code remains in place */