radeonsi: Pass texture type to sampling intrinsics.
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 30 Nov 2012 10:38:24 +0000 (11:38 +0100)
committerMichel Dänzer <michel@daenzer.net>
Thu, 17 Jan 2013 14:47:38 +0000 (15:47 +0100)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 5dab46e4d6db7c9d6eb71df57044fd356823d740..484333097b9492fb7ac9b5ce5e98e6b7a994fca4 100644 (file)
@@ -845,12 +845,10 @@ static void tex_fetch_args(
                                                ptr, offset);
 
        /* Dimensions */
-       /* XXX: We might want to pass this information to the shader at some. */
-/*     emit_data->args[4] = lp_build_const_int32(bld_base->base.gallivm,
+       emit_data->args[4] = lp_build_const_int32(bld_base->base.gallivm,
                                        emit_data->inst->Texture.Texture);
-*/
 
-       emit_data->arg_count = 4;
+       emit_data->arg_count = 5;
        /* XXX: To optimize, we could use a float or v2f32, if the last bits of
         * the writemask are clear */
        emit_data->dst_type = LLVMVectorType(