Mesa (mesa_7_7_branch): llvmpipe: Fix assert.

Vinson Lee vlee at kemper.freedesktop.org
Mon Dec 28 18:07:27 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 46c2196de3ed0c2745afb3a2e5180947576f07ea
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46c2196de3ed0c2745afb3a2e5180947576f07ea

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Dec 28 18:07:09 2009 -0800

llvmpipe: Fix assert.

---

 src/gallium/drivers/llvmpipe/lp_bld_depth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_bld_depth.c b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
index 98ec1cb..d438c0e 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_depth.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
@@ -90,7 +90,7 @@ lp_depth_type(const struct util_format_description *format_desc,
 
    if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) {
       type.floating = TRUE;
-      assert(swizzle = 0);
+      assert(swizzle == 0);
       assert(format_desc->channel[swizzle].size == format_desc->block.bits);
    }
    else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) {



More information about the mesa-commit mailing list