gallivm: Fix copy'n'paste typo bug translating CEIL opcode.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 11 May 2012 15:43:28 +0000 (16:43 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 11 May 2012 15:44:42 +0000 (16:44 +0100)
Trivial.

src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c

index d278444ce9005188a644e2023967f6ddd5666e9d..e0a518092190ae0564524d8ae4f2f57c1ec2618c 100644 (file)
@@ -892,8 +892,8 @@ ceil_emit_cpu(
    struct lp_build_tgsi_context * bld_base,
    struct lp_build_emit_data * emit_data)
 {
-   emit_data->output[emit_data->chan] = lp_build_trunc(&bld_base->base,
-                                                         emit_data->args[0]);
+   emit_data->output[emit_data->chan] = lp_build_ceil(&bld_base->base,
+                                                      emit_data->args[0]);
 }
 
 /* TGSI_OPCODE_CMP (CPU Only) */