radeonsi: Remove incorrect (and dead) assignment in tex_fetch_args().
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 6 Feb 2013 16:14:26 +0000 (17:14 +0100)
committerMichel Dänzer <michel@daenzer.net>
Thu, 7 Feb 2013 18:07:43 +0000 (19:07 +0100)
The proper return type is assigned at the end of the function.

src/gallium/drivers/radeonsi/radeonsi_shader.c

index 2d640f245b2a37f5bb9187503a04ce23c76db418..36711be352fc66d535d4c025aac68f7106612773 100644 (file)
@@ -911,8 +911,6 @@ static void tex_fetch_args(
        while (count < util_next_power_of_two(count))
                address[count++] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context));
 
-       emit_data->dst_type = LLVMVectorType(LLVMInt32TypeInContext(gallivm->context),
-                                            count);
        emit_data->args[1] = lp_build_gather_values(gallivm, address, count);
 
        /* Resource */